curl --request POST \
--url https://api.paygentic.io/v0/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"planId": "<string>",
"type": "stripe_revenue",
"name": "<string>",
"description": "<string>",
"config": {},
"metadata": {},
"enabled": true,
"processingMode": "automatic"
}'
{
"id": "<string>",
"object": "source",
"planId": "<string>",
"merchantId": "<string>",
"type": "stripe_revenue",
"name": "<string>",
"description": "<string>",
"config": {},
"metadata": {},
"enabled": true,
"processingMode": "automatic",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Create a new source for automated usage event generation from external data sources.
curl --request POST \
--url https://api.paygentic.io/v0/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"planId": "<string>",
"type": "stripe_revenue",
"name": "<string>",
"description": "<string>",
"config": {},
"metadata": {},
"enabled": true,
"processingMode": "automatic"
}'
{
"id": "<string>",
"object": "source",
"planId": "<string>",
"merchantId": "<string>",
"type": "stripe_revenue",
"name": "<string>",
"description": "<string>",
"config": {},
"metadata": {},
"enabled": true,
"processingMode": "automatic",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Source created successfully
The response is of type object
.