Approvals
POST/v1/approvals/{approval_id}/reject

Reject payment

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/approvals/{approval_id}/reject" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"reason":"not_delivered"}'

Rejects the approval with an optional reason and denies the payment intent; nothing is paid. Callable with a console session or an API key holding approval:decide.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/approvals/{approval_id}/rejectBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • approval_idstringrequired

    Approval id (apr_...).

Body

application/json. Fields are listed under Request body below.

Requires permissionapproval:decide
Held by owner, admin (with a grant), finance (with a grant), approver (own team). The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

approval_id*Approval Id

Approval id (apr_...).

Request Body

application/json
  1. body
reason?string|null

Response Body

Success.

application/json
  1. response
approval*
intent?|null
state*State
message?string|null
next_action?|

Plan approvals: 'wallet_step' when the approval is saved but the plan's wallet step failed; retry with POST /v1/plans/{plan_id}/wallet-step

next_action_error?|null
[key: string]?any