Capture Payment
Authentication
Basic authentication of the form Basic <base64(username:password)>.
Path parameters
The unique ID of the Afterpay Order, returned as the id property of the Auth response.
Headers
Request
The reference/ order id that this payment corresponds to in the merchant’s system.
Note: Providing a new value will update any value previously set in the Create Checkout request.
Object containing amount and currency.
Where a Money object is included in an API request, it will be validated according to the specification above. Invalid Money objects will trigger a 422 Unprocessable Entity response. The following is a list of common examples:
Response
If successful, returns an updated copy of the Payment object, with the newly captured payment appended to the events array as a Payment Event object with a type of “CAPTURED”.
is the merchant’s order id/reference that the payment corresponds to.
An array of refunds. Note: in response to a Capture Full Payment call, this array will always be empty, since refunds cannot occur until payment is captured.
List of billing agreements created if any (field omitted if empty)