Cookie Consent by Free Privacy Policy Generator Update cookies preferences

This endpoint performs a direct payment capture and is the equivalent of capturing a credit card.

This operation is idempotent based on the token, which allows for the safe retry of requests, guaranteeing the payment operation is only performed once.

📘

Note

Since the idempotency of this endpoint is based on the token, the inclusion of a requestId is not required.

Successful Response (201)

If payment is approved by Clearpay, returns a Payment object in response.

📘

Note

The Payment object is only returned if the payment is approved by Clearpay and successfully captured. If the payment is declined or fails, an error object is returned. See the Errors section below.

Connection Timeouts

TimeoutTime (Seconds)
Open10
Read70

Errors

In addition to the PUT/POST Errors applicable to all POST endpoints, the following errors are specific to Capture Payment:

HTTP Status CodeerrorCodeDescription
402
Payment Required
declinedThe consumer's payment has been declined. For example, invalid card details were entered during the Clearpay screenflow. Please advise the consumer to contact the Clearpay Customer Service team for more information.
412
Precondition Failed
invalid_tokenThe order token is invalid, expired, or does not exist.
412
Precondition Failed
invalid_order_transaction_statusThe Consumer has not confirmed their payment for the order associated with this token.
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!