Auth [Express Checkout]
This endpoint performs a payment capture for the full value of the payment plan.
<Note title="Note">This operation is idempotent based on the token, which allows for the safe retry of requests, guaranteeing the payment operation is only performed once.
Since the idempotency of this endpoint is based on the token, the inclusion of a requestId is not required. </Note>
<Note title="Note">The consumer's payment plan will begin at the time of auth approval. </Note>
Approved Response (201)
If payment is approved by Clearpay, returns a Payment object in response, with a status of "APPROVED".
Declined Response (201)
If payment is approved by Clearpay, for example, if invalid card details were entered, returns a Payment object in response, with a status of "DECLINED".
Please advise the consumer to contact the Clearpay Customer Service team for more information.
Connection Timeouts
| Timeout | Time (Seconds) |
|---|---|
| Open | 10 |
| Read | 70 |
Errors
In addition to the PUT/POST Errors applicable to all POST endpoints, the following errors are specific to Capture Full Payment:
| HTTP Status Code | errorCode | Description |
|---|---|---|
| 402 <br />Payment Required | invalid_token | The checkout token is invalid, expired, or does not exist. |
| 412 <br />Precondition Failed | invalid_order_transaction_status | The Consumer has not confirmed their payment for the order associated with this token. |
| 422 <br />Unprocessable Entity | invalid_object | The checkout token was missing or empty. |
Request
- Base URL: https://global-api-sandbox.afterpay.com
- URL: https://global-api-sandbox.afterpay.com/v2/payments/auth.
- Auth: HTTP basic
Headers
Request body
Response
200
Changes
No recorded changes to this operation across all 1 revision of this API.