FreightCake
API Reference

Invoices

Billing records and downloadable PDFs.

GET/api/v1/invoices

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.

In: header

Query Parameters

limit?integer

Page size. Defaults to a server-chosen value; maximum 100.

Range1 <= value <= 100
starting_after?string

Cursor: return records after this id.

ending_before?string

Cursor: return records before this id.

customer_id?integer

Filter by customer.

Range0 <= value
status?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/invoices"
{  "object": "list",  "data": [    {      "object": "invoice",      "id": 0,      "invoice_number": "string",      "status": "string",      "amount_due_cents": 0,      "amount_paid_cents": 0,      "due_date": "string",      "created_at": "string"    }  ],  "has_more": true,  "url": "/api/v1/invoices"}
GET/api/v1/invoices/{id}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.

In: header

Path Parameters

id*string

Resource identifier.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/invoices/string"
{  "object": "invoice",  "id": 0,  "invoice_number": "string",  "status": "string",  "amount_due_cents": 0,  "amount_paid_cents": 0,  "due_date": "string",  "created_at": "string"}
GET/api/v1/invoices/{id}/pdf

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.

In: header

Path Parameters

id*string

Resource identifier.

Response Body

application/pdf

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/invoices/string/pdf"
"string"