Tokenization
Create a token for the given invoice.
Request
Endpoint: https://youcanpay.com/api/invoices/tokenize/{invoice_id}
Method: POST
bash
$ curl --location --request POST 'https://youcanpay.com/api/invoices/tokenize/inv_jk7fd0abc-8b2f-4b38-8ee7-fd337cb92f79' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN_eyJpc3...'Response
json
{
"token_id": "067h5klop12-a0f0-4a18-b407-60945cb3ca65",
"pub_key": "pub_3109gh29sbh-1379-4e64-9a3f-5c8d5bb2"
}