Ask a customer to pay
post/payments/requests
Ask a customer to pay: a payment link or a checkout on the business's own Stripe account, for one amount in one currency, with the platform fee set by the platform. An agent inside the project's limits (amount cap, currency, allowed customers) creates it; outside them, or with no limits set, it waits for the owner's approval. Repeat with the same idempotency key to get the same request.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
shop:write- Mcp
rivier_payments_request_payment- Graphql
Mutation.shopPaymentRequestCreate- Sdk
shop.paymentRequest.create- Cli
shop payment request create
Request bodyapplication/json, required
- amountMinorintegerrequiredAt least 1. At most 99999999.
- currencystringrequiredPattern: ^[A-Za-z]{3}$.
- kindstringOne of: link, checkout. Default: link.
- customerstringAt most 200 characters.
- descriptionstringDefault: Payment. At most 200 characters.
- successUrlstring (uri)At most 500 characters.
- cancelUrlstring (uri)At most 500 characters.
- expiresInMinutesintegerAt least 30. At most 1440.
- idempotencyKeystringAt most 100 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring