Orders

Get an Order

GET
/merchants/{id}/orders/{ORD_id}

Get info about a Order

Get info about an Order event on the Global Payments system.

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /accesstoken, sent as Authorization: Bearer <token>.

In: header

Path Parameters

id*string

A unique identifier for the merchant set by Global Payments.

Lengthlength <= 50
ORD_id*string

A unique identifier for the merchant set by Global Payments.

Header Parameters

X-GP-Version*string

The version of the API to execute the request.

Length1 <= length <= 50
Default"2021-03-22"
X-GP-Idempotency?string

Integrator generated value submitted in the request header that is checked to ensure the same value has not been seen in the last 24 hours. It is used to ensure idempotency is maintained with this action.

Length1 <= length <= 50

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/merchants/MER_31087d9c-e68c-4389-9f13-39378e166ea5/orders/ORD_zvQ6JT0n0wfhaztiL8vCyE0yQslvkz" \  -H "X-GP-Version: 2021-03-22"
{  "id": "ORD_zvQ6JT0n0wfhaztiL8vCyE0yQslvkz",  "merchant_id": "MER_c4c0df11039c48a9b63701adeaa296c3",  "merchant_name": "Curtis_Douglas49",  "status": "INITIATED",  "tax_amount": "299",  "tax_percentage": "string",  "total_amount": "string",  "account_id": "TRA_6491c2bb5c5344f28a053f7698e522e9",  "account_name": "transaciton processing",  "time_created": "2023-03-10T13:14:48.386Z",  "time_last_updated": "2023-03-10T13:14:48.386Z",  "reference": "string",  "products": {    "id": "PRO_TRA_CP-US-CARD-A920_SP",    "name": "string",    "quantity": "1",    "items": {      "manufacturer_model": "A920",      "account_name_format": "SERIAL_NUMBER",      "amount": "10000",      "serial_number": "123456ASD",      "tracking_reference": "123412341234"    }  },  "addresses": {    "functions": [      null    ],    "name": "John Doe",    "email": "Gerda.Johnston43@yahoo.com",    "city": "Beverly Hills",    "state": "CA",    "country": "US",    "line_1": "123 Merchant Street",    "line_2": "Suite 2",    "line_3": "foyer",    "postal_code": "90210",    "contact_phone": {      "country_code": "01",      "subscriber_number": "8008675309"    }  },  "payment_method": {    "name": "John Doe",    "card": {      "number": "4111111111111111",      "cvv": "852",      "expiry_month": "11",      "expiry_year": "25",      "avs_postal_code": "90210"    }  },  "action": {    "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "type": "ORDER_INITIATED",    "time_created": "2023-03-10T13:14:48.386Z",    "result_code": "SUCCESS",    "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "app_name": "my_lovely_app"  }}