POST API/V40/Interactive/Payment/Outlet/{outletCode}/AddPaymentToCheck
Create a payment for an existing GXP delivery location POS order.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
outletCode |
The outlet code |
string |
Required |
Body Parameters
The request model
AddPaymentToCheckRequestName | Description | Type | Additional information |
---|---|---|---|
GxpCheckNumber | string | ||
PaymentAmount | decimal number | ||
PaymentToken | string | ||
PaymentState | string | ||
PaymentType | string | ||
TipAmount | decimal number | ||
NameOnCard | string | ||
SessionToken |
The token associated with this session of API interactions. This token should always be included in API calls, because it contains important session state information. |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "gxpCheckNumber": "sample string 1", "paymentAmount": 2.0, "paymentToken": "sample string 3", "paymentState": "sample string 4", "paymentType": "sample string 5", "tipAmount": 1.0, "nameOnCard": "sample string 6", "sessionToken": "sample string 7" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseContainerModelName | Description | Type | Additional information |
---|---|---|---|
SessionToken |
The token associated with this session of API interactions. Generally this is the same token passed with the API request parameters, but under certain circumstances this can be changed before being sent back to the caller. |
string | |
ResponsesIncluded |
A list of response messages names contained in this composite message, for easy pre-parsing. |
string | |
Responses |
A list of response messages contained in this composite message. |
Collection of Object | |
Status |
The success status the composite message. |
CompositeStatus |
Response Formats
application/json, text/json
Sample:
{ "sessionToken": "n3tA6Hxm3IgKAAAAAAAAAAAAAAA.Fvw2agjbrU9bL0v039orDunP2o9pqJpg6jSrrjwotfw", "responsesIncluded": "addPaymentToCheckResponse", "responses": [ { "addPaymentToCheckResponse": { "content": { "orderId": 1, "posOrderReference": "sample string 1", "gxpOrderReference": "sample string 2", "gxpCheckNumber": "sample string 3", "paymentStatus": "sample string 4", "total": 1.0, "posTotalDue": 1.0 }, "succeeded": true } } ], "status": "Success" }