Skip to main content
POST
/
payment_intents
/
{id}
/
cancel
Cancel a Payment Intent
curl --request POST \
  --url https://api.staging.blackbird.xyz/flynet/v1/payment_intents/{id}/cancel
Cancels a pending intent. Re-canceling a canceled intent returns the same intent without side effects. Paid or refunded intents cannot be canceled. Auth: OAuth access token.

Example

curl -X POST https://api.staging.blackbird.xyz/flynet/v1/payment_intents/{uuid}/cancel \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Response

{
  "id": "{uuid}",
  "object": "payment_intent",
  "status": "canceled",
  "canceled_at": "2026-05-11T20:02:00Z",
  "amount": { "value": "1000000000000000000", "currency": "FLY" }
}

Errors

CodeMeaning
400 paymentIntent0003Intent is not in a cancelable state.
401Missing or invalid OAuth bearer. Empty body.