curl --request POST \
--url https://secure.PayStar.uk//api/v1/integration/withdrawal-order \
--header 'Authorization: Bearer Your Token' \
--header 'Content-Type: application/json' \
--header 'accept: text/plain' \
--data '{
"amount": 100,
"currency": "USD",
"externalTransactionId": "Merch12345",
"additionalFields": [
{
"key": "cardNumber",
"value": "1234123412341234"
},
{
"key": "bankName",
"value": "SuperBank"
}
]
}'
curl --location --request POST 'https://secure.PayStar.uk/api/v1/integration/withdrawal-order/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 100,
"currency": "RUB",
"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": "cardNumber",
"value": "1234123412341234"
},
{
"key": "payeerIdentifier",
"value": "Merch-12345"
},
{
"key": "email",
"value": "Jhon.Wick@Continental-Hotel.com"
}
]
}'
{
"externalId": "a30288b2-220a-4495-9bcb-6821dcc39331",
"orderStatus": "Created"
}