Create Order

Description

The orders are placed using create order API method. Payment URL is generated after successful call. Buyer should be redirected to payment URL. On this page buyer can see the payment amount, select the desired payment currency and complete the payment.

Create Order

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

Path Parameters

NameTypeDescription

customer_id

string

Your account's ID

access_token

string

Access token issued by CityPay

order_id

integer

Order ID

order_token

integer

Unique token for order given by you

amount

number

The price set by the merchant in double type

{
    "status": 1,
    "status_code ": 201,
    "message": {
        "id": 441,
        "payment_url": "https://v2-order.citypay.io/invoice?token=2334232323233232323",
        "token": "2334232323233232323"
    }
}

Last updated