CityPay
  • Merchant Payment Gateway
  • Introduction
    • API Overview
    • API Authentication
    • Error Codes
  • Endpoints and callbacks
    • Create Order
    • Get Order information
    • Deposit
    • Order Status
    • Payment Callback
    • Exchange rates
    • IP Addresses
    • Sandbox
  • Order API in your UI
    • Log in
    • Generate Order
    • Choose crypto
    • Get Order
    • Update order rates
    • Get Order History
Powered by GitBook
On this page

Was this helpful?

  1. Order API in your UI

Generate Order

Use this endpoint to generate orders

Create order

POST https://v2-listener.citypay.io/api/generateOrder

Request Body

Name
Type
Description

customer_id

number

Your user ID

access_token

string

The access token for authorization

order_id

string

Order Id in your system

order_token

string

Random string

amount

integer

The order amount

{
    "success": true,
    "message": null,
    "data": {
        "id": 2876,
        "payment_url": "https://v2-order.citypay.io/order/token1",
        "token": "token1"
    }
}

PreviousLog inNextChoose crypto

Last updated 4 years ago

Was this helpful?