POST
/
v1
/
invoices
curl --request POST \
  --url https://api.app.slickerhq.com/ingest/v1/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoices": [
    {
      "id": "inv_12345678",
      "state": "INVOICE_STATE_PAID",
      "customerId": "cus_87654321",
      "subscriptionId": "sub_12345678",
      "amount": 2500,
      "currency": "USD",
      "createdAt": "2023-01-15T10:00:00Z",
      "updatedAt": "2023-01-15T10:30:00Z"
    },
    {
      "id": "inv_87654321",
      "state": "INVOICE_STATE_UNPAID",
      "customerId": "cus_12345678",
      "subscriptionId": "sub_87654321",
      "amount": 5000,
      "currency": "USD",
      "createdAt": "2023-01-20T09:00:00Z",
      "updatedAt": "2023-01-20T09:30:00Z"
    }
  ]
}'
{
  "requestId": "req_2uqkAo1bwllmzrgV2qtGv48DtGI"
}

Authorizations

Authorization
string
header
required

API key authentication using a Bearer token in the Authorization header. Example: Authorization: Bearer YOUR_API_KEY

Body

application/json

Request to ingest invoice data. Maximum of 200 invoices per request.

invoices
object[]

Response

200
application/json
A successful response.
requestId
string

Unique identifier for tracking the request through the system

Example:

"req_2uqkAo1bwllmzrgV2qtGv48DtGI"