Payments
Create a payment
Seal your payment information and get the link to send the sender. The payment's credits are set aside now and come back if it ends before the transaction number.
https://el-b.com/api/v1/payments Authorization
- Authorizationheaderrequired
Bearer elb_sk_…: your API key, from API in your El-B account.
Body
- amount_dzd integer required
500 to 200,000 DZD, whole dinars. Fixed once the payment exists.
- deliverable string required
What you deliver to the sender. 3 to 300 characters.
- fulfillment_target string required
Where you deliver it: a receiving account, an address, a meeting place. 3 to 300 characters.
- platform string
Where you negotiated (Facebook Marketplace, Ouedkniss…). When set, the sender is asked for it too.
- recipient_handle string
Your name or shop's name as the sender sees it on that platform. When set, the sender is asked for it too.
- label string
Your own reference, up to 120 characters. Never shown to the sender.
- join_mode string
verified(default): senders with a verified account only.account: any signed-in sender.guest: anyone with the link, up to 3,000 DZD.
Responses
| Status | Meaning |
|---|---|
201 | Success. The body is shown alongside. |
402 | Not enough credits. missing_credits says how many. |
409 | El-B cannot open a payment for this account right now (for example, its RIP is blocked). message says why. |
422 | A field is invalid, or guest was asked for an amount above the guest limit. |
401 | Missing, unknown or paused API key. |
403 | The account is suspended, or no longer verified by an official document. |
429 | More than 60 requests in a minute. See Rate limits. |