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
orderId
The Order ID to update
Headers
User-Agent
Accept
Request
This endpoint expects an object.
merchantReference
The merchant’s new order ID to replace with
Response
Returns object containing the following attributes.
id
The unique Cash App Afterpay (merchant payment) payment ID.
token
Checkout token to be used to complete customer checkout and payment.
status
“APPROVED” (update is only valid for successful orders)
created
The payment creation time [ISO 8601 UTC/Zulu time](https://www.iso.org/iso-8601-date-and-time-format.html).
originalAmount
Total amount for the order. See Money.
openToCaptureAmount
Total amount that can be captured for order. See Money.
paymentState
Available states: “AUTH_APPROVED”, “CAPTURED”, “VOIDED”, “EXPIRED”, “AUTH_DECLINED”, “PARTIALLY_CAPTURED”, “CAPTURE_DECLINED""
merchantReference
refunds
The refund details for merchant's order. See Refund.
orderDetails
The order bound to the payment. See Order Details.
events
Event list for for merchant's order. See Events.