Skip to content

Cancels a payment session

Request

POST {{baseURL}}/pay-int-api/payment-sessions/{{paymentSessionId}}/cancel

See Also:
To create a payment session, see POST /pay-int-api/payment-sessions.
To retrieve payment session details by ID, see GET /pay-int-api/payment-sessions/{paymentSessionId}.

Security
Bearer
Path
paymentSessionIdstring, (uuid)required

Specifies the identifier of the payment session to cancel.

Example:bac48037-8e9f-4a0b-1c2d-3e4f5a6b7c03
Headers
x-api-versionstring

Specifies the API version to use for the request.

Example: 1.0

Example:1.0
curl -i -X POST \
  https://developer.flute.com/_mock/api-reference/pay-int-api/payment-sessions/bac48037-8e9f-4a0b-1c2d-3e4f5a6b7c03/cancel \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-version: 1.0'

Responses

Payment session cancelled successfully

Response
No content