Update Payment by Order ID

This endpoint is to create merchant side order ID's following the Cash App Afterpay order ID creation. Call the endpoint immediately after the Cash App Afterpay order is created.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <username:password>.

Path parameters

orderIdstringRequired
The Order ID to update

Headers

User-AgentstringRequired
AcceptstringOptionalDefaults to application/json

Request

This endpoint expects an object.
merchantReferencestringRequiredDefaults to new_merchant_order_id_1234

The merchant’s new order ID to replace with

Response

Returns object containing the following attributes.
idstring or null

The unique Cash App Afterpay (merchant payment) payment ID.

tokenstring or null
Checkout token to be used to complete customer checkout and payment.
statusstring or null

“APPROVED” (update is only valid for successful orders)

createdany or null
The payment creation time [ISO 8601 UTC/Zulu time](https://www.iso.org/iso-8601-date-and-time-format.html).
originalAmountobject or null
Total amount for the order. See Money.
openToCaptureAmountobject or null
Total amount that can be captured for order. See Money.
paymentStatestring or null

Available states: “AUTH_APPROVED”, “CAPTURED”, “VOIDED”, “EXPIRED”, “AUTH_DECLINED”, “PARTIALLY_CAPTURED”, “CAPTURE_DECLINED""

merchantReferenceany or null
refundsobject or null
The refund details for merchant's order. See Refund.
orderDetailsobject or null
The order bound to the payment. See Order Details.
eventsobject or null
Event list for for merchant's order. See Events.

Errors