Create payment

Redoc: Create payment

Endpoint

POST /api/v1/paymentgate/payment/simple/

Description

Record payment registration in system and return payment info with redirect link.

Request Body

{
  "endpoint": "1dc4441f-38d5-42b5-a705-81958f928462",
  "amount": 100,
  "currency": "string",
  "description": "string",
  "client_id": "string",
  "success_url": "http://example.com",
  "fail_url": "http://example.com",
  "notify_url": "http://example.com",
  "payment_method": "string",
  "auto_redirect": 100,
  "buyer": {
    "remote_id": "string",
    "ip": "string"
  }
}
Parameter Type required Description
endpoint string <uuid> T Endpoint API Key
amount integer >= 1 T Amount in minor units
currency string T Deposit currency (char code, example: ETH)
description string F Description
client_id string F Transaction id at the endpoint
success_url string or null <uri> F Redirect URL after success result
fail_url string or null <uri> F Redirect URL after fail result
notify_url string or null <uri> F Notification URL of changed status
payment_method string F Payment method type
auto_redirect integer F Payout method type
buyer object F Buyer at the endpoint

Response

201 Created

{
  "tx": {
    "tx": "f17d7f5c-6b4a-47fd-95eb-08086e250473",
    "payout": {
      "amount": 100,
      "currency": {
        "id": 0,
        "title": "Ethereum",
        "char_code": "ETH",
        "num_code": 123
      },
      "description": "string",
      "status": "create",
      "test_mode": true,
      "client_id": "string",
      "created_at": "2024-09-27T11:56:32Z",
      "complete_date": "2024-09-27T11:56:32Z",
      "means_of_payment": {
        "mop_type": {
          "id": 100,
          "name": "string",
          "code": "string"
        },
        "number": "string",
        "detail": {
          "property1": null,
          "property2": null
        }
      },
      "moderated": true,
      "means_of_payment_type": {
        "id": 100,
        "name": "string",
        "code": "string"
      },
      "language": {
        "id": 100,
        "name": "string",
        "code": "string"
      },
      "merchant_fee_amount": 0
    },
    "status": "create",
    "currency": {
      "id": 0,
      "title": "Ethereum",
      "char_code": "ETH",
      "num_code": 123
    },
    "amount": 100,
    "created_at": "2024-09-27T11:56:32Z",
    "additional_data": {
      "property1": null,
      "property2": null
    },
    "endpoint_logo": "string"
  }
}