Rivier/ Reference/ shop

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

  • amountMinorintegerrequired
    At least 1. At most 99999999.
  • currencystringrequired
    Pattern: ^[A-Za-z]{3}$.
  • kindstring
    One of: link, checkout. Default: link.
  • customerstring
    At most 200 characters.
  • descriptionstring
    Default: Payment. At most 200 characters.
  • successUrlstring (uri)
    At most 500 characters.
  • cancelUrlstring (uri)
    At most 500 characters.
  • expiresInMinutesinteger
    At least 30. At most 1440.
  • idempotencyKeystring
    At most 100 characters.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown