Purchase product
Create a checkout intent and immediately trigger the purchase workflow.
This is a "fire-and-forget" endpoint that combines create + confirm in one step. The workflow handles offer retrieval, payment authorization, and order placement asynchronously. Poll the GET endpoint to check status.
Request body
Example request
{
"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"
},
"quantity": 1,
"productUrl": "https://www.amazon.com/dp/B0DFC9MT8Q",
"paymentMethod": {
"stripeToken": "tok_1RkrWWHGDlstla3f1Fc7ZrhH",
"type": "stripe_token"
}
}Response
Created
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
Changed in 11 of the 48 revisions of this API.1826
- ▲
removed
NekudaPaymentMethodPravaPaymentMethodfrom theallOf[CheckoutIntentConfirmParams]/paymentMethodrequest propertyanyOflistrequest-property-any-of-removed
- ○
removed
NekudaPaymentMethodPravaPaymentMethodfrom theanyOf[subschema #2: Awaiting Confirmation]/allOf[subschema #2]/paymentMethodresponse propertyanyOflist for the response status201response-property-any-of-removed
- ○
removed
NekudaPaymentMethodPravaPaymentMethodfrom theanyOf[subschema #3: Requires Action]/allOf[subschema #2]/paymentMethodresponse propertyanyOflist for the response status201response-property-any-of-removed
- ○
removed
NekudaPaymentMethodPravaPaymentMethodfrom theanyOf[subschema #4: Placing Order]/allOf[subschema #2]/paymentMethodresponse propertyanyOflist for the response status201response-property-any-of-removed
- ○
removed
NekudaPaymentMethodPravaPaymentMethodfrom theanyOf[subschema #5: Completed]/allOf[subschema #2]/paymentMethodresponse propertyanyOflist for the response status201response-property-any-of-removed
- ○
removed
NekudaPaymentMethodPravaPaymentMethodfrom theanyOf[subschema #6: Failed]/allOf[subschema #2]/paymentMethodresponse propertyanyOflist for the response status201response-property-any-of-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
allOf[CheckoutIntentPostParams]/referenceIdnew-optional-request-property
- ○
added the optional property
anyOf[subschema #1: Retrieving Offer]/allOf[BaseCheckoutIntent]/referenceIdto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #2: Awaiting Confirmation]/allOf[BaseCheckoutIntent]/referenceIdto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #3: Requires Action]/allOf[BaseCheckoutIntent]/referenceIdto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #4: Placing Order]/allOf[BaseCheckoutIntent]/referenceIdto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #5: Completed]/allOf[BaseCheckoutIntent]/referenceIdto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #6: Failed]/allOf[BaseCheckoutIntent]/referenceIdto the response with the201statusresponse-optional-property-added
- ○
- ○
the security scope
checkout_intents:writewas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
- ○
added the non-success response with the status
503response-non-success-status-added
- ○
- ●
removed the optional property
anyOf[subschema #2: Awaiting Confirmation]/allOf[subschema #2]/offer/developerCommissionfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
anyOf[subschema #3: Requires Action]/allOf[subschema #2]/offer/developerCommissionfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
anyOf[subschema #4: Placing Order]/allOf[subschema #2]/offer/developerCommissionfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
anyOf[subschema #5: Completed]/allOf[subschema #2]/offer/developerCommissionfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
anyOf[subschema #6: Failed]/allOf[subschema #2]/offer/developerCommissionfrom the response with the201statusresponse-optional-property-removed
- ○
added the optional property
anyOf[subschema #2: Awaiting Confirmation]/allOf[subschema #2]/offer/commissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #3: Requires Action]/allOf[subschema #2]/offer/commissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #4: Placing Order]/allOf[subschema #2]/offer/commissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #5: Completed]/allOf[subschema #2]/offer/commissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #6: Failed]/allOf[subschema #2]/offer/commissionto the response with the201statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the optional property
anyOf[subschema #2: Awaiting Confirmation]/allOf[subschema #2]/offer/developerCommissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #3: Requires Action]/allOf[subschema #2]/offer/developerCommissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #4: Placing Order]/allOf[subschema #2]/offer/developerCommissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #5: Completed]/allOf[subschema #2]/offer/developerCommissionto the response with the201statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #6: Failed]/allOf[subschema #2]/offer/developerCommissionto the response with the201statusresponse-optional-property-added
- ○
- ●
removed the optional property
anyOf[subschema #5: Completed]/allOf[subschema #2]/commissionsfrom the response with the201statusresponse-optional-property-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
payment_cvc_expiredenum value to theanyOf[subschema #6: Failed]/allOf[subschema #2]/failureReason/coderesponse property for the response status201response-property-enum-value-added
- ●
- ○
added the optional property
anyOf[subschema #5: Completed]/allOf[subschema #2]/commissionsto the response with the201statusresponse-optional-property-added
- ○
- ○
removed the
payment_cvc_expiredenum value from theanyOf[subschema #6: Failed]/allOf[subschema #2]/failureReason/coderesponse property for the response status201response-property-enum-value-removed
- ○