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
  • Description
  • Create Order

Was this helpful?

  1. Endpoints and callbacks

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

Name
Type
Description

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"
    }
}
{
    "status": "error",
    "status_code ": 422,
    "message": {
        "amount": "The amount field is required."
    }
}

PreviousError CodesNextGet Order information

Last updated 4 years ago

Was this helpful?