Send a payment (website in body)
Same as sending a payment to a website path. Site keys need no website; account tokens pass website in the body.
Related: Send a payment and List payments in Payments.
Request
Headers
AuthorizationstringrequiredBearer followed by a site key, an account token or an OAuth access token with the payments:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
transactionIdstringrequired1–200 characters
amountnumberrequiredcurrencystringrequiredExactly 3 characters
typestringoptionalOne of: new, renewal, refund, trial · Default: "new"
emailstringoptionalcustomerIdstringoptionalUp to 200 characters
customerNamestringoptionalUp to 200 characters
visitorIdstringoptionalUp to 100 characters
sessionIdstringoptionalUp to 100 characters
userIdstringoptionalUp to 200 characters
subscriptionIdstringoptionalUp to 200 characters
originalTransactionIdstringoptionalUp to 200 characters
paidAtstring (date-time)optionalmetadataobject<string, string>optionalKeys up to 64 characters · Values up to 500 characters
websitestringoptionalUp to 253 characters
Response
The payment.
{
"status": "string",
"data": {
"payment": {
"id": "string",
"siteId": "string",
"provider": "stripe",
"transactionId": "string",
"type": "new",
"amount": 0,
"currency": "string",
"convertedAmount": "string",
"convertedCurrency": "string",
"exchangeRate": "string",
"conversion": "converted",
"conversionError": "string",
"customerId": "string",
"customerExternalId": "string",
"email": "string",
"customerName": "string",
"visitorId": "string",
"sessionId": "string",
"attribution": {
"channel": "direct",
"source": "string",
"referrer": "string",
"referrerHost": "string",
"utmSource": "string",
"utmMedium": "string",
"utmCampaign": "string",
"utmTerm": "string",
"utmContent": "string",
"ref": "string",
"landingPage": "string",
"clickIds": "string"
},
"attributionModel": "last_touch",
"matchedBy": "metadata_visitor",
"integrationId": "string",
"subscriptionId": "string",
"originalTransactionId": "string",
"unverified": true,
"paidAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"recording": {
"url": "string",
"offsetSec": 0
}
},
"created": true
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.payment | object | |
| data.payment.id | string | |
| data.payment.siteId | string | |
| data.payment.provider | string | |
| data.payment.transactionId | string | |
| data.payment.type | string | |
| data.payment.amount | integer | |
| data.payment.currency | string | |
| data.payment.convertedAmount | integer | null | null | |
| data.payment.convertedCurrency | string | |
| data.payment.exchangeRate | number | null | null | |
| data.payment.conversion | string | |
| data.payment.conversionError | string | null | null | |
| data.payment.customerId | string | null | null | |
| data.payment.customerExternalId | string | null | null | |
| data.payment.email | string | null | null | |
| data.payment.customerName | string | null | null | |
| data.payment.visitorId | string | null | null | |
| data.payment.sessionId | string | null | null | |
| data.payment.attribution | object | null | null | |
| data.payment.attribution.channel | string | null | null | |
| data.payment.attribution.source | string | null | null | |
| data.payment.attribution.referrer | string | null | null | |
| data.payment.attribution.referrerHost | string | null | null | |
| data.payment.attribution.utmSource | string | null | null | |
| data.payment.attribution.utmMedium | string | null | null | |
| data.payment.attribution.utmCampaign | string | null | null | |
| data.payment.attribution.utmTerm | string | null | null | |
| data.payment.attribution.utmContent | string | null | null | |
| data.payment.attribution.ref | string | null | null | |
| data.payment.attribution.landingPage | string | null | null | |
| data.payment.attribution.clickIds | object<string, string> | |
| data.payment.attributionModel | string | null | null | |
| data.payment.matchedBy | string | null | null | |
| data.payment.integrationId | string | null | null | |
| data.payment.subscriptionId | string | null | null | |
| data.payment.originalTransactionId | string | null | null | |
| data.payment.unverified | boolean | |
| data.payment.paidAt | string (date-time) | |
| data.payment.createdAt | string (date-time) | |
| data.payment.recording | object | null | null | |
| data.payment.recording.url | string | |
| data.payment.recording.offsetSec | integer | |
| data.created | boolean |