Public endpoints
POST/v1/public/approvals/{token}/reject

Reject payment by link

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/public/approvals/{token}/reject" \  -H "Content-Type: application/json" \  -d '{"reason":"not_delivered"}'

Rejects the approval from the one-time link with an optional reason; nothing is paid. The token alone authorizes the rejection.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/public/approvals/{token}/rejectBase URL: https://api.52-28-238-205.sslip.io
Path
  • tokenstringrequired

    One-time approval token from the approval link. It is the only credential for this page.

Body

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

Path Parameters

token*Token

One-time approval token from the approval link. It is the only credential for this page.

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