Confirm checkout intent
Changed onConfirm a checkout intent with provided payment information
Confirm means we have buyer's name, address and payment info, so we can move forward to place the order.
Request
- Base URLhttps://staging.api.rye.com
- URLhttps://staging.api.rye.com/api/v1/checkout-intents/{id}/confirm
- AuthAPI key in header Authorization
Path parameters
The id of the checkout intent to confirm
Request body
Example request
{
"paymentMethod": {
"stripeToken": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
"type": "stripe_token"
}
}Response
The confirmed checkout intent
Example response
{
"referenceId": "order-1234",
"constraints": {
"maxShippingPrice": 500,
"maxTotalPrice": 100000
},
"promoCodes": [
"SAVE20"
],
"variantSelections": [
{
"label": "Size, Color, etc."
}
],
"buyer": {
"postalCode": "10001",
"country": "US",
"province": "NY",
"city": "New York",
"address2": "Apt 1",
"address1": "123 Main St",
"phone": "1234567890",
"email": "john.doe@example.com",
"lastName": "Doe",
"firstName": "John"
}
}Changes
- breaking
removed from the
request propertyanyOflist - info
removed from the
//response propertyanyOflist for the response status - info
removed from the
//response propertyanyOflist for the response status - info
removed from the
//response propertyanyOflist for the response status - info
removed from the
//response propertyanyOflist for the response status - info
removed from the
//response propertyanyOflist for the response status
- breaking
- info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- info