Use this API to integrate with the Shippo service
Shippo external API. (2018-02-08)
Please note that the following endpoints are in beta and API contract is subject to change.
An invoice is a request for payment for Shippo services. It is a collection of invoice items. You can query your invoice at any time to see your current charges. Shippo sends invoices weekly or when your bill has exceeded $100. Shippo Billing FAQs.
Invoice items are the individual amounts owed to Shippo. They can represent a purchased label or a charge for a service. Invoice items also represent refunds. They are the line items in an invoice.
- https://api.goshippo.com/invoices/{InvoiceObjectId}
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl https://api.goshippo.com/invoices/{InvoiceObjectId} \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json"Unique identifier of the given Invoice object
Unique identifier of the user who the Invoice has been issued to.
Human readable unique identifier of the given Invoice object that is displayed in the web app.
The status of the Invoice.
Date and time of when the Invoice was posted and no new Invoice Items were added. Field will be null when invoice is still in the draft status.
Date and time of when the Invoice was successfully paid. Field will be null when invoice is not in the paid status.
{ "object_id": "ec9f0d3adc9441449c85d315f0997fd5", "object_created": "2019-08-24T14:15:22Z", "object_updated": "2019-08-24T14:15:22Z", "shippo_account": "915d94940ea54c3a80cbfa328722f5a1", "invoice_number": 234167, "status": "POSTED", "invoice_closed": "2019-08-24T14:15:22Z", "invoice_paid_date": "2019-08-24T14:15:22Z", "total_invoiced": { "amount": "5.52", "currency": "USD" }, "total_charged": { "amount": "5.52", "currency": "USD" } }
Request
Endpoint is in beta and API contract is subject to change.
Retrieves a collection of invoices that belong to the authenticated user. Date range and invoice status filters can be used to filter the result set. The results are paginated. Please see filtering documentation for more information on date filtering and pagination.
- https://api.goshippo.com/invoices
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl https://api.goshippo.com/invoices?results=20&page=2 \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json"{ "next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [ { … } ] }
Request
Endpoint is in beta and API contract is subject to change.
Retrieves a collection of invoice items that belong to the authenticated user. Invoice object ID and object owner object ID can be used to filter the result set. The results are paginated. Please see filtering documentation for more information on date filtering and pagination.
- https://api.goshippo.com/invoice-items
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl /invoice-items?results=20&page=2 \
-H "Authorization: ShippoToken <API_TOKEN>" \
-H "Content-Type: application/json"{ "next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [ { … } ] }