Skip to content
Website API / Payments

Send a payment (website in body)

POSThttps://<your Reveata origin>/api/v1/payments

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.

Try in playground

Request

Headers

Authorizationstringrequired

Bearer followed by a site key, an account token or an OAuth access token with the payments:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

transactionIdstringrequired

1–200 characters

amountnumberrequired
currencystringrequired

Exactly 3 characters

typestringoptional

One of: new, renewal, refund, trial · Default: "new"

emailstringoptional
customerIdstringoptional

Up to 200 characters

customerNamestringoptional

Up to 200 characters

visitorIdstringoptional

Up to 100 characters

sessionIdstringoptional

Up to 100 characters

userIdstringoptional

Up to 200 characters

subscriptionIdstringoptional

Up to 200 characters

originalTransactionIdstringoptional

Up to 200 characters

paidAtstring (date-time)optional
metadataobject<string, string>optional

Keys up to 64 characters · Values up to 500 characters

websitestringoptional

Up 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

FieldTypeDescription
status"ok"
dataobject
data.paymentobject
data.payment.idstring
data.payment.siteIdstring
data.payment.providerstring
data.payment.transactionIdstring
data.payment.typestring
data.payment.amountinteger
data.payment.currencystring
data.payment.convertedAmountinteger | null | null
data.payment.convertedCurrencystring
data.payment.exchangeRatenumber | null | null
data.payment.conversionstring
data.payment.conversionErrorstring | null | null
data.payment.customerIdstring | null | null
data.payment.customerExternalIdstring | null | null
data.payment.emailstring | null | null
data.payment.customerNamestring | null | null
data.payment.visitorIdstring | null | null
data.payment.sessionIdstring | null | null
data.payment.attributionobject | null | null
data.payment.attribution.channelstring | null | null
data.payment.attribution.sourcestring | null | null
data.payment.attribution.referrerstring | null | null
data.payment.attribution.referrerHoststring | null | null
data.payment.attribution.utmSourcestring | null | null
data.payment.attribution.utmMediumstring | null | null
data.payment.attribution.utmCampaignstring | null | null
data.payment.attribution.utmTermstring | null | null
data.payment.attribution.utmContentstring | null | null
data.payment.attribution.refstring | null | null
data.payment.attribution.landingPagestring | null | null
data.payment.attribution.clickIdsobject<string, string>
data.payment.attributionModelstring | null | null
data.payment.matchedBystring | null | null
data.payment.integrationIdstring | null | null
data.payment.subscriptionIdstring | null | null
data.payment.originalTransactionIdstring | null | null
data.payment.unverifiedboolean
data.payment.paidAtstring (date-time)
data.payment.createdAtstring (date-time)
data.payment.recordingobject | null | null
data.payment.recording.urlstring
data.payment.recording.offsetSecinteger
data.createdboolean