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

Get Order History

Use this method to get all orders created by the logged in user

Get Orders

GET https://v2-order-api.citypay.io/orders/api

Query Parameters

Name
Type
Description

page

number

The page of the list

limit

number

The number of the items on one page

Headers

Name
Type
Description

bearer_token

string

Authentication token

{
    "statusCode": 200,
    "data": {
        "items": [
            {
                "id": 2876,
                "token": "token 1",
                "createdAtMiliseconds": 1617786773000,
                "amount": "5.00",
                "status": {
                    "code": "IN_PROGRESS",
                    "label": "IN_PROGRESS"
                },
                "currency": {
                    "id": 2,
                    "currency": "US Dollar",
                    "abbreviation": "USD"
                }
            }
        ],
        "meta": {
            "totalCount": 1,
            "pagesCount": 1,
            "currentPage": 0,
            "nextPage": null
        }
    }
}

PreviousUpdate order rates

Last updated 4 years ago

Was this helpful?