Payment-Gateway-OpenApi
    Payment-Gateway-OpenApi
    • Getting Started
    • Fiat Collection
      • Overview
      • Pelago Direct Mode
        • Direct Mode Introduction
        • Get Rate
        • Order Notify
    • Crypto Collection
      • Overview
      • Order Notify
        POST
      • Refund
        POST
      • Withdraw
        POST
      • Payout
        POST
    • Common Collection
      • Check Order Info
        POST
    • Crypto For X402
      • Retrieve Supported Payment Methods
        GET
      • Create or Confirm Order
        POST
      • Query Order Status
        GET
    • Obsolete (已废弃)
      • Pelago Cashier Mode
        • Cashier Mode Introduction
        • Create Pelago Order
      • Create Order
        POST
      • Create Order
        POST
      • Get Product
        POST
      • Get Order Info
        POST
    • Create Order (统一下单接口)
      POST
    • Order Query
      GET

      Create Order (统一下单接口)

      POST
      /openapi/v2.0/order/create

      Request

      Header Params

      Body Params application/json

      Example
      {
          "signature": "ipsum sunt aliquip nulla et",
          "data": {
              "merchantId": "10043",
              "merchantOrderId": "order_s123001006",
              "orderAmount": "0.1",
              "orderCurrency": "USD",
              "notifyUrl": "https://torn-tapioca.info/"
          }
      }

      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 'https://api.pelagotech.com/openapi/v2.0/order/create' \
      --header 'X-App-Key: {{merchant-app-key}}' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "signature": "ipsum sunt aliquip nulla et",
          "data": {
              "merchantId": "10043",
              "merchantOrderId": "order_s123001006",
              "orderAmount": "0.1",
              "orderCurrency": "USD",
              "notifyUrl": "https://torn-tapioca.info/"
          }
      }'

      Responses

      🟢200OK
      */*
      OK
      Body

      Example
      {
          "code": 0,
          "data": {
              "pelagoOrderId": "PO2026011901584470012",
              "merchantOrderId": "order_1324215",
              "expireTime": 1768788524438,
              "redirectUrl": "https://dev-cashier.pelagotech.com/?token=t939hw07psuc0xkf3n"
          },
          "msg": ""
      }
      Modified at 2026-01-26 01:48:32
      Previous
      Get Order Info
      Next
      Order Query
      Built with