Billing
The ShipBob Billing API provides endpoints to manage and retrieve billing-related data, including invoices, transactions, and transaction fees. All requests require a Personal Access Token (PAT) with the billing_read scope. This guide details the four available endpoints, including sample requests and responses.
Authentication
To access the Billing API endpoints, you must use a valid Personal Access Token (PAT) with the billing_read scope. If you encounter access issues (e.g., 403 Forbidden errors), follow these steps:
-
Verify
billing_readScope:- Make a request to the
GET /2025-07/channelsendpoint to confirm your PAT includes thebilling_readscope. - Sample Request:
- If the response indicates the
billing_readscope is missing, generate a new PAT.
- Make a request to the
-
Generate a New PAT:
- Log in to the ShipBob Dashboard and navigate to Settings > API > Personal Access Tokens.
- Create a new PAT with the
billing_readscope enabled. - Update your API requests with the new PAT.
Get Invoices
Retrieves a list of invoices within a specified date range.
Endpoint
GET /2025-07/invoices
Query Parameters
Headers
Sample Request
Sample Response
Search Transactions
Queries transactions based on specified criteria, such as date range or transaction type.
Endpoint
POST /2025-07/transactions:query
Headers
Request Body
Sample Request
Sample Response
Get Transactions by Invoice ID
Retrieves all transactions associated with a specific invoice ID.
Endpoint
GET /2025-07/invoices/{invoiceId}/transactions
Path Parameters
Query Parameters
Headers
Sample Request
Sample Response
Get Transaction Fees
Retrieves a list of available transaction fee types.
Endpoint
GET /2025-07/transaction-fees
Headers
Sample Request
Sample Response
Notes
- Date Format: All dates must be in
YYYY-MM-DDformat. - Pagination: Endpoints that support pagination use
PageandPageSizeparameters (default: 100, max: 100). - Scopes: The
billing_readscope is required for all endpoints. Requests without it will fail with an authorization error. - API Specification: For full details, refer to the ShipBob API Specification.
- Support: For issues, contact ShipBob support via the dashboard or review the API documentation for updates.

