Record a subscription
Records the latest state of a subscription the payment source manages, under the source's own id for it.
Idempotent on externalId and ordered by updatedAt: a state older than the recorded one is superseded and changes nothing. Only a payment source records purchases.
Guide: Payment sources
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | invalid_subscription | For a state that cannot be recorded as sent. |
| 400 | invalid_request | payment_source_required | For a store. |
| 404 | not_found | payment_provider_not_found | For an unknown provider. |
| 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
- Record a transaction
PUT - Refund a transaction
POST - Cancel a subscription
POST
Something wrong or missing on this page? Tell us by email or on Discord.