API
  • Introduction
  • Authentication
  • Error Handling
  • API ENDPOINTS
    • Payment
    • Invoices
      • Create Invoice
      • Re-send Invoice
      • Get Invoice - customerEmail
      • Get Invoice - invoiceNo
      • Get Invoice - orderNo
    • Payment Link
      • Create Link
      • Get Link
      • Update Link
      • Delete Link
    • Charge Token
      • Create Token
      • Get Token
      • Charge Token
      • Bulk Charge
      • Query Bulk Charge with BacthId
    • Subscriptions
      • Create Subscription
      • Charge Subscription
      • Get Customer Subscription
      • Update Customer Subscription
      • Get Merchant Subscription
    • Virtual Account
      • Create Virtual Account
      • Get Virtual Account
      • Delete Virtual Account
      • Get Payment
    • Pay with Transfer
    • Pay with USSD
    • Mobile Money Payments
    • Bank Account Payments
    • Card Payment
      • Initializing a Card Payment
      • Scenario 1 (Verve Card Type)
      • Scenario 2 (Master Card and Visa Card Type)
      • Scenario 3
Powered by GitBook
On this page
  1. API ENDPOINTS
  2. Invoices

Create Invoice

Create and send invoice to customer's emails

/create

POST https://seerbitapi.com/invoice/create

This endpoint allows you to create and send an invoice to a customers email

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Request Body

Name
Type
Description

publickey*

String

merchant public key

orderNo*

String

dueDate*

String

expiration date for invoice payment

currency*

String

currency for invoice

receiversName*

String

customer name

customerEmail*

String

customer email

itemName*

String

item invoiced

Quantity*

String

no of items

Rate*

String

unit price of item

tax*

String

tax

curl --location 'https://seerbitapi.com/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data-raw '{
    "publicKey":"YOUR_PUBLIC_KEY",
    "orderNo": "333333221321",
    "dueDate": "2022-10-23",
    "currency": "NGN",
    "receiversName": "Jane Smith",
    "customerEmail": "janesmith@emaildomain.com",
    "invoiceItems": [
        {
            "itemName": "Bluetooth Pods",
            "quantity": 1,
            "rate": 25000,
            "tax": 7.5
        },
        {
            "itemName": "Quest 10",
            "quantity": 4,
            "rate": 100000,
            "tax": 7.5
        }
    ]
}'
{
    "message": "Invoice created successfully ",
    "payload": {
        "InvoiceID": 92,
        "InvoiceNo": "SBT-INV-000092"
    },
    "code": "00"
}
PreviousInvoicesNextRe-send Invoice

Last updated 9 months ago