PayStar API Documentation
  1. Merchant EN
  • Merchant EN
    • Introduction
    • Glossary
    • Authorization key
    • Sandbox
    • Additional fields
    • Currencies
    • Bank names
    • Telecom operators
    • Callbacks
    • Error descriptions
    • Tech FAQ
    • Order History
    • Integratins
      • Stripe
      • Inwizo
      • 2Checkout
      • Adyen
      • AffiniPay
      • Alikassa
      • AlliancePay
      • Amazon Pay
      • AnyMoney
      • AstroPay
      • Aureavia
      • AurisMyChanger
      • Authorize.Net
      • Avatarix
    • Balance H2H
      GET
    • Deposit H2H - Card & P2P
      POST
    • Deposit H2H - Token
      POST
    • Deposit H2C - Card
      POST
    • Deposit status H2H - PayStar ID
      GET
    • Deposit status H2H - Merch ID
      GET
    • Payout H2H
      POST
    • Payout status H2H - PayStar ID
      GET
    • Payout status H2H - Merch ID
      GET
  1. Merchant EN

Payout H2H

POST
https://secure.PayStar.uk/api/v1/integration/withdrawal-order/
Last modified:2025-04-29 19:32:13
INFO
This method is used to perform payouts.
Note: Deposits and payouts cannot share the same Authorization keys — they are two separate pipelines.
You can use this CURL to create a payout order.
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"
   }
 ]
}'

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "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"
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://secure.PayStar.uk/api/v1/integration/withdrawal-order/' \
--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"
        }
    ]
}'

Responses

🟢200Order created successfully
application/json
Body

Example
{
    "externalId": "a30288b2-220a-4495-9bcb-6821dcc39331",
    "orderStatus": "Created"
}
🟠400Bad request
🟠401Unauthorized
🟠403Forbidden
🟠423Temporary error
Modified at 2025-04-29 19:32:13
Previous
Deposit status H2H - Merch ID
Next
Payout status H2H - PayStar ID
Built with