Skip to content

Withdraw approval request and return bill to draft

Request

Security
oauth2ClientCredentials(Required scopes: bills:write)
Path
billIdstringrequired
paymentRefstringrequired
Headers
org_wallet_refstring
business_idstringrequired
Bodyapplication/jsonrequired
reasonstring
Example:"Withdrawn by initiator"
curl -i -X POST \
  'https://developer.boyahq.com/_mock/v2/openapi/bills/{billId}/payments/{paymentRef}/withdraw' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'business_id: string' \
  -H 'org_wallet_ref: string' \
  -d '{
    "reason": "Withdrawn by initiator"
  }'

Responses