Skip to main content

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

AttributeDefinitionFormatNotes
modeRequest for confirmation details for delayed transaction.String. Always set to "CART".Required

Response

AttributeDefinitionFormatNotes
messageInformation about whether delayed transaction has been confirmed or not.StringFor example: "The transaction has been fully confirmed."

Error Responses

statusCodeerrorMessageerrorCodeDefinition
400 Bad RequestTransaction does not existINVALID_REQUESTNo such transaction in the system
400 Bad RequestTransaction does not require confirmationINVALID_REQUESTConfirmation is not required for this type of transaction
400 Bad RequestConfirmation mode mismatchINVALID_REQUESTWhen confirmation mode informed in this request is different from confirmationMode of the original transaction
400 Bad RequestTransaction cannot be confirmedINVALID_REQUESTWhen no saleLineItems are provided
400 Bad RequestTransaction already confirmedINVALID_REQUESTThe specified transaction has already been confirmed

Request

Responses

200 - Delayed Transaction Confirmed

Response Headers
    Date
    Example: Thu, 21 May 2020 03:43:33 GMT
    Content-Length
    Example: 186
    Connection
    Example: keep-alive
    x-amzn-RequestId
    Example: b85dbc8e-0e47-48db-be87-1f82c6e219ad
    Referrer-Policy
    Example: no-referrer
    X-XSS-Protection
    Example: 1;mode=block
    Access-Control-Allow-Origin
    Example: *
    Expect-CT
    Example: max-age=86400
    Strict-Transport-Security
    Example: max-age=31536000
    Feature-Policy
    Example: vibrate 'none'; geolocation 'none'
    X-Frame-Options
    Example: sameorigin
    Content-Security-Policy
    Example: connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.net
    x-amz-apigw-id
    Example: M3PTzHUzoAMFQ5Q=
    cache-control
    Example: no-cache, no-store, must-revalidate
    X-Content-Type-Options
    Example: nosniff
    X-Amzn-Trace-Id
    Example: Root=1-5ec5f8e5-94895ac2bb5944cd597874ba;Sampled=0