Programmable

Update Request Status

Update the status of a request (accept, decline, or cancel).

Required body fields depend on requestType and status:

requestTypestatusBody
paymentacceptedOne wallet ID: senderWalletId or recipientWalletId, not both
paymentdeclined / cancelledstatus only
fulfillmentanystatus only — no wallet IDs
cancellationanystatus only — no wallet IDs

Which wallet ID on payment accept? Depends on who started the programmable payment (stored server-side, not in this request):

  • Payer started it → recipient accepts with recipientWalletId
  • Recipient started it → payer accepts with senderWalletId

On payment accept, send the wallet ID for your side of the deal.

patch/payments/programmable/request/{id}

Request

Path parameters

idstring required

The ID of the request to update.

Query parameters

requestType'payment' | 'fulfillment' | 'cancellation' required

The type of request: 'payment', 'fulfillment', or 'cancellation'.

Request body

OR
OR
OR

Example request

{
  "status": "accepted",
  "senderWalletId": "550e8400-e29b-41d4-a716-446655440000"
}

Response

The request status was updated successfully.

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.