curl --request POST \
--url https://init.PayStar.uk/api/v1/integration/deposit-order\
--header 'Authorization: Bearer YOUR TOKEN' \
--header 'Content-Type: application/json' \
--header 'accept: text/plain' \
--data '{
"amount": 100,
"currency": "USD",
"externalTransactionId": "MerchantPaymentId-12345",
"successRedirectUrl": "http://merch.com/success",
"failedRedirectUrl": "http://merch.com/failed",
"processingRedirectUrl": "http://merch.com/processing",
"additionalFields": [
{
"key": "payeerIdentifier",
"value": "Merch-12345"
},
{
"key": "email",
"value": "Jhon.Wick@Continental-Hotel.com"
}
]
}
curl --location --request POST 'https://init.PayStar.uk/api/v1/integration/deposit-order/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 100,
"currency": "USD",
"externalTransactionId": "MerchID-{{$number.int(min=1)}}",
"callbackUrl": "https://merch.com/callbackUrl",
"processingRedirectUrl": "https://merch.com/processing",
"failedRedirectUrl": "https://merch.com/failed",
"successRedirectUrl": "https://merch.com/success",
"additionalFields": [
{
"key": "payeerIdentifier",
"value": "Merch-12345"
},
{
"key": "email",
"value": "Jhon.Wick@Continental-Hotel.com"
}
]
}'
{
"externalId": "e1537516-d160-48fa-b542-708d76d4c3ca",
"orderStatus": "Init",
"formUrl": "https://payform.PayStar.uk?token=b226f7c4-7c95-4748-8da5-05f369f75cea"
}