How to get the {token} in payments API

Highlighted
New Member
26 0 0

Hi Team,

 

I am trying to create a payment using the below endpoint:

POST /admin/api/2019-10/checkouts/#{token}/payments.json

 

Could anyone please let me know what is the {token} path parameter? And how can I know/get the value for the same?

 

Thanks,

Ambika

0 Likes
Shopify Staff
Shopify Staff
129 22 26

Hi @agaonkar ,

 

The {token} path parameter is a unique ID to identify a particular checkout. Use the Checkout endpoint of the Shopify Admin API to get the token for a particular checkout.

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes