POST
/
invoices
curl --request POST \
  --url https://api.live.paisr.tech/{version}/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer": "<string>",
  "summary": "<string>",
  "currency": "<string>",
  "due": "<string>",
  "items": [
    {
      "description": "<string>",
      "quantity": 2,
      "unit_price": 1
    }
  ]
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "status": "<string>",
    "session": null
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
The details required to create an invoice.
customer
string
required

ID or email address of the customer being billed.

summary
string
required

Detailed description about the invoice.

due
string
required

Due date in relative time. (e.g. 'In 3 days')

currency
string

Currency code in ISO 4217 format. Defaults to customer currency is none is provided.

items
object[]

Response

200
application/json
Successfully created invoice.
success
boolean
default:true

Indicates if the request was successful.

data
object