Confirm Delayed Transaction
POST/client/users/:correlation_id/sessions/:originalTransactionId/confirmations
This API call provides confirmation details against a prior transaction that included a confirmation request.
The mode parameter in the request indicates the type of confirmation provided (CART = Full Cart Confirmation).
If after applying this confirmation the transaction is fully confirmed then ES Loyalty will remove any points on hold that are related to the original transaction making those points available to the account.
Point balances are available via the member profile in ES Console, from the Start Session API response, or from the Balance Inquiry API response.
Request
Body
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| mode | Request for confirmation details for delayed transaction. | String. Always set to "CART". | Required |
Response
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| message | Information about whether delayed transaction has been confirmed or not. | String | For example: "The transaction has been fully confirmed." |
Error Responses
| statusCode | errorMessage | errorCode | Definition |
|---|---|---|---|
| 400 Bad Request | Transaction does not exist | INVALID_REQUEST | No such transaction in the system |
| 400 Bad Request | Transaction does not require confirmation | INVALID_REQUEST | Confirmation is not required for this type of transaction |
| 400 Bad Request | Confirmation mode mismatch | INVALID_REQUEST | When confirmation mode informed in this request is different from confirmationMode of the original transaction |
| 400 Bad Request | Transaction cannot be confirmed | INVALID_REQUEST | When no saleLineItems are provided |
| 400 Bad Request | Transaction already confirmed | INVALID_REQUEST | The specified transaction has already been confirmed |
Request
Responses
- 200
- 400
200 - Delayed Transaction Confirmed
Response Headers
Date
Example:
Thu, 21 May 2020 03:43:33 GMTContent-Length
Example:
186Connection
Example:
keep-alivex-amzn-RequestId
Example:
b85dbc8e-0e47-48db-be87-1f82c6e219adReferrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000Feature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netx-amz-apigw-id
Example:
M3PTzHUzoAMFQ5Q=cache-control
Example:
no-cache, no-store, must-revalidateX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-5ec5f8e5-94895ac2bb5944cd597874ba;Sampled=0400 - Transaction Does Not Exist
Response Headers
Date
Example:
Thu, 21 May 2020 03:42:35 GMTContent-Length
Example:
96Connection
Example:
keep-alivex-amzn-RequestId
Example:
0a15b1fe-3f6f-4ab2-b4d5-a29bb652c1f3Referrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000Feature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netx-amz-apigw-id
Example:
M3PKsHkKoAMFnTQ=cache-control
Example:
no-cache, no-store, must-revalidateX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-5ec5f8aa-1b25b7eb8c8cb4b192a0eb26;Sampled=0