Payment Features
Create Invoice
The Create Invoice API allows you create and manage Invoices on your integration.
Create Invoice
Create an invoice on your integration
Endpoint: /create_invoice
Method: POST
Header
| Param | Type | Required? | Decription |
|---|---|---|---|
| authorization | string | Yes | Set value to Bearer SECRET_KEY |
| content-type | string | Yes | Set value to application/json |
Body Param
| Param | Type | Required? | Decription |
|---|---|---|---|
| string | Yes | Customer's email address | |
| name | string | Yes | Customer's fullname name |
| title | string | Yes | Invoice Title |
| currency | string | Yes | item price currency |
| itemname | string | Yes | item name |
| itemprice | string | Yes | item price |
| itemquantity | string | Yes | item quantity |
| description | string | Yes | invoice description. |
| invoicenumber | string | Yes | invoice number |
| duedate | string | Yes | invoice due date. |
Sample Post
curl https://api.budpay.com/api/v2/create_invoice
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "email": "sam.alagbado@gmail.com",
"name": "Sam Alagbado",
"title": "Invoice Title",
"currency": "NGN",
"itemname": "Item Name",
"itemprice": "1000",
"itemquantity": 1,
"description": "my invoice description",
"invoicenumber": "INV_2020/10/001",
"duedate": "2022-10-30"
}'
-X POST
Sample Response
{
"status": true,
"message": "Invoice created successfully",
"data": {
"invoice_id": "17373818",
"ref_id": "29494829",
"redirect_link": "https://pay.budpay.com/invoice/mc85c8hzzwfyowx"
}
}