Record a transaction
Records a charge or refund the payment source took, under the source's own id for it.
Idempotent on externalId: the same request again returns the recorded transaction; correct a payment with a refund. Only a payment source records purchases.
Guide: Payment sources
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | invalid_transaction | For a transaction that cannot be recorded as sent, which records nothing. |
| 400 | invalid_request | payment_source_required | For a store. |
| 404 | not_found | payment_provider_not_found | For an unknown provider. |
| 409 | conflict | transaction_conflict | For a different request with the same externalId. |
| 409 | conflict | payment_source_disabled | For a disabled source. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Payment sources
- Refund a transaction
POST - Record a subscription
PUT - Cancel a subscription
POST
Something wrong or missing on this page? Tell us by email or on Discord.