Orders

Complete an Order

POST
/merchants/{id}/orders/{ORD_id}/initiation

Complete an order where the price has been checked. This will finalize the order and the device will be shipped.

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 POST "https://example.com/merchants/MER_31087d9c-e68c-4389-9f13-39378e166ea5/orders/ORD_zvQ6JT0n0wfhaztiL8vCyE0yQslvkz/initiation" \  -H "X-GP-Version: 2021-03-22"
{  "id": "ORD_zvQ6JT0n0wfhaztiL8vCyE0yQslvkz",  "merchant_id": "MER_c4c0df11039c48a9b63701adeaa296c3",  "merchant_name": "Curtis_Douglas49",  "status": "INITIATED",  "time_created": "2023-03-10T13:14:48.386Z",  "time_last_updated": "2023-03-10T13:14:48.386Z",  "action": {    "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "type": "ORDER_INITIATED",    "time_created": "2021-05-03T21:23:39.718Z",    "result_code": "SUCCESS",    "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "app_name": "my_lovely_app"  }}