PayStar API Documentation
  1. API DOC | EN
  • MERCHANT
    • PRODUCTS | EN
    • ПРОДУКТЫ | RU
    • Untitled Doc
    • FEATURES | EN
      • Deposits & Payouts
      • Issues (Tickets)
      • Secure data (One-time secret)
      • Summary Report
      • Payment Analytics
      • Payment Form Analytics
      • Unified audit log
      • Export reports
      • Black list
      • Routing & Cascading
      • Limits
      • Commissions
      • Team
      • My Account
      • PayStar in 100 Questions
    • ВОЗМОЖНОСТИ | RU
      • Депозиты и выплаты
      • Issues (Задачи)
      • Защищённые данные (One-time secret)
      • Сводный отчёт
      • Аналитика по платежам
      • Единый журнал событий
      • Аналитика платёжной формы
      • Экспорт отчётов
      • Черный список
      • Мавршрутизация и Каскады
      • Лимиты
      • Комиссии
      • Команда
      • Мой аккаунт
      • PayStar в 100 вопросах
    • API DOC | EN
      • Introduction
      • Glossary
      • Authorization key
      • Sandbox
      • Additional fields
      • Currencies
      • Bank names
      • Telecom operators
      • Callbacks
      • Error descriptions
      • Tech FAQ
      • Events
      • Payment history v2
      • 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
  • AGENT (REFERRAL)
  1. API DOC | EN

Deposit H2C - Card

POST
https://init.PayStar.uk/api/v1/integration/deposit-order/
Maintainer:Not configured
PCI DSS NOT REQUIRED
If you do not have a PCI DSS certificate, you can use this method. In this case, you must not collect the user's card details when creating the payment — the user will be presented with a Payment web page to enter their card information at the next step.
If you have a PCI DSS certificate, please refer to the following method: secure.PayStar.uk/api/v1/integration/deposit-order

To make deposit payment please use follow sections:#

Create payment (current method): POST payform.PayStar.uk/api/v1/integration/deposit-order/
Get status: GET init.PayStar.uk/api/v1/integration/deposit-order/{externalId}/status
Get status by Callback

Create H2H Deposit with the banking card - Sequence diagram#

Glossary: User | Merchant | PayStar.uk | ACS | Order | 3DS URL | Callback

CURL Example | POST Deposit order#

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

Request

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

Examples

Responses

🟢200Success
application/json
Body

🟠400Validation error
🟠401Unauthorized
🟠403Forbidden - Endpoint
🟠400Payment already exist
🟠400Limit was reached
🟠423Temporary error
🔴500Internal Server Error
🟠403Forbidden - IP address
Request Request Example
Shell
JavaScript
Java
Swift
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"
        }
    ]
}'
Response Response Example
200 - Example 1
{
    "externalId": "e1537516-d160-48fa-b542-708d76d4c3ca",
    "orderStatus": "Init",
    "formUrl": "https://payform.PayStar.uk?token=b226f7c4-7c95-4748-8da5-05f369f75cea"
}
Previous
Deposit H2H - Token
Next
Deposit status H2H - PayStar ID
Built with