curl --request POST \
--url https://staging.api.rye.com/api/v1/checkout-intents \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"buyer": {
"postalCode": "10001",
"country": "United States",
"province": "NY",
"city": "New York",
"address2": "Apt 1",
"address1": "123 Main St",
"phone": "+1234567890",
"email": "john.doe@example.com",
"lastName": "Doe",
"firstName": "John"
},
"productUrl": "<string>"
}'
{
"buyer": {
"postalCode": "10001",
"country": "United States",
"province": "NY",
"city": "New York",
"address2": "Apt 1",
"address1": "123 Main St",
"phone": "+1234567890",
"email": "john.doe@example.com",
"lastName": "Doe",
"firstName": "John"
},
"productUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"state": "retrieving_offer"
}
Create a checkout intent with the given request body.
curl --request POST \
--url https://staging.api.rye.com/api/v1/checkout-intents \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"buyer": {
"postalCode": "10001",
"country": "United States",
"province": "NY",
"city": "New York",
"address2": "Apt 1",
"address1": "123 Main St",
"phone": "+1234567890",
"email": "john.doe@example.com",
"lastName": "Doe",
"firstName": "John"
},
"productUrl": "<string>"
}'
{
"buyer": {
"postalCode": "10001",
"country": "United States",
"province": "NY",
"city": "New York",
"address2": "Apt 1",
"address1": "123 Main St",
"phone": "+1234567890",
"email": "john.doe@example.com",
"lastName": "Doe",
"firstName": "John"
},
"productUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"state": "retrieving_offer"
}
Rye API key
Created
The response is of type object
.
Was this page helpful?