Misc API Endpoints
This guide will help you to understand various miscellaneous endpoints of Crater API.
GETapi/v2/next-number
Next Sequence Number
This endpoint allows you to get the next Sequence Number for an Invoice or Estimate.
Parameters
- Name
model
- Type
- string
- Description
Invoice or Estimate
Request
GET
api/v2/next-numbercurl --request GET \
"https://payments.your-domain.com/api/v2/next-number?model=invoice" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "business: 995c98ce-cdd9-4ef6-b018-9c696cb07e9d"
Response
{
"nextNumber": "INV-000001",
"nextSequenceNumber": 1
}