Skip to content
شعار البي شعار البي El-BDevelopers

Payments

Cancel a payment

End a payment before the sender enters the transaction number. Its credits come back to your balance. The sender is told.

POST https://el-b.com/api/v1/payments/{code}/cancel

Authorization

  • Authorizationheaderrequired

    Bearer elb_sk_…: your API key, from API in your El-B account.

Path parameters

  • code string required

    The payment's code.

Responses

StatusMeaning
200Success. The body is shown alongside.
404No payment with this code among the payments you receive.
409The payment already ended, or the transaction number is in: it can no longer be cancelled.
401Missing, unknown or paused API key.
403The account is suspended, or no longer verified by an official document.
429More than 60 requests in a minute. See Rate limits.