InstantTransfer
  1. Withdrawal direct | PDO API Bridge
InstantTransfer
  • PayStar API Documentation
    • Introduction
    • Authorization Bearer
    • Sandbox
    • Callbacks
    • Glossary
    • Dictionarys
      • Currencys
      • Telecom operators
      • Bank names
    • Deposit direct (Merch)
      • Create | Deposit order
      • Check status | Deposit order
    • Deposit reverse (Gateway)
      • Create | Reverse deposit order
      • Check status | Deposit order
    • Withdrawal direct (Merch)
      • Create | Withdrawal order
      • Check status | Withdrawal order
    • Balance
      • GET Merchant balance
  • Armax API
    • POST Armax Order
      POST
  • Butler API Bridge
    • Authorization Bearer
    • Withdrawal direct | PDO API Bridge
      • Check status | Withdrawal order
        GET
      • Create | Withdrawal Order
        POST
    • PSP Deposit Order
      • PSP Deposit Order
      • PSP Deposit Order status
    • Merch Deposit Order
      • Merch Deposit Order
      • Merch Deposit Order status
  • CoreFy API
    • Withdrawal Order
      POST
    • Payment Order
      POST
  • PayNetEasy API Bridg
    • Introduсtion
    • Autorization
    • Glossary
    • POST order
      POST
    • POST Status order
      POST
  1. Withdrawal direct | PDO API Bridge

Create | Withdrawal Order

POST
/api/v1/integration/butler/withdrawal-order

CURL Example | POST Withdrawal order#

curl --request POST \
  --url https://example.com//api/v1/integration/butler/withdrawal-order \
  --header 'Authorization: Bearer Your Token' \
  --header 'Content-Type: application/json' \
  --data '{
  "externalId": "Merch-12345",
  "amount": 1000,
  "properties": [
    {
      "key": "cardNumber",
      "value": "1111123456781111"
    },
    {
      "key": "telecomOperator",
      "value": "vodafone-uk"
    }
  ]
}'

Changes#

You have integration with ButlerWalet?
In case you have previously integrated with ButlerWallet processing, you need to change several integration settings:
1.
Replace the integration URL: /api​/v1​/integration​/merch-deposit-order -> /api/v1/integration/butler/withdrawal-order
2.
Apply a new authorization token - please request an authorization token from the manager
3.
Apply a new mapping of bankName and telecomOperator - please find bankName & telecomOperator list

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": "1000",
  "externalId": "Merch-12345",
  "propertiess": [
    {
      "key": "CardNumber",
      "value": "123456789012"
    },
    {
      "key": "telecomOperator",
      "value": "vodafone-uk"
    }
  ]
}

Request Code 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 '/api/v1/integration/butler/withdrawal-order' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "amount": "1000",
  "externalId": "Merch-12345",
  "propertiess": [
    {
      "key": "CardNumber",
      "value": "123456789012"
    },
    {
      "key": "telecomOperator",
      "value": "vodafone-uk"
    }
  ]
}'

Responses

🟢200Success
application/json
The order was created in the paystar system - now you need to wait for a callback (if callbacks are configured) or query the status using the following method: GET /api/v1/integration/butler/withdrawal-order/{id}
Body

Example
{
    "amount": "1000",
    "status": "Created",
    "externalId": "Merch-1234567890",
    "pspDepositOrderID": "PayStar-9dc24b8a-0c32-4437-9645-8f53cd07e1e8"
}
🟠400Validation error
🟠401Unauthorized
🟠403Forbidden
🟠422Unprocessable Entity
🟠423Locked
🔴500Server Error
Modified at 2024-12-12 13:18:26
Previous
Check status | Withdrawal order
Next
PSP Deposit Order
Built with