POST
/
api
/
v1
/
checkout-intents
/
{id}
/
payment
POST add payment method to checkout intent
curl --request POST \
  --url https://staging.api.rye.com/api/v1/checkout-intents/{id}/payment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '"<any>"'
{
  "variantSelections": [
    {
      "value": "Small, Red, XS, L, etc.",
      "label": "Size, Color, etc."
    }
  ],
  "buyer": {
    "postalCode": "10001",
    "country": "US",
    "province": "NY",
    "city": "New York",
    "address2": "Apt 1",
    "address1": "123 Main St",
    "phone": "5555555555",
    "email": "john.doe@example.com",
    "lastName": "Doe",
    "firstName": "John"
  },
  "quantity": 123,
  "productUrl": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "state": "retrieving_offer"
}

Authorizations

Authorization
string
header
required

Rye API key. Format: Bearer <RYE_API_KEY>

Path Parameters

id
string
required

The id of the checkout intent to add payment details to

Body

application/json · any

The request body containing the payment details

The body is of type any.

Response

Payment response

buyer
object
required
quantity
number
required
productUrl
string
required
createdAt
string<date-time>
required
id
string
required
state
enum<string>
required
Available options:
retrieving_offer
variantSelections
object[]