# OneChain API Documentation ## Docs - [Fetch a document](https://docs.api.onechain-tms.com/api-reference/documents/fetch-a-document.md): Fetch a document givent its id - [Fetch all documents](https://docs.api.onechain-tms.com/api-reference/documents/fetch-all-documents.md): Fetch all your documents, or all documents associated to one of your shipments. - [Fetch all invoices](https://docs.api.onechain-tms.com/api-reference/invoices/fetch-all-invoices.md): This endpoint returns all the invoices of the account. - [Fetch an invoice](https://docs.api.onechain-tms.com/api-reference/invoices/fetch-an-invoice.md): This endpoint returns the invoice corresponding to the given number. - [Get all locations](https://docs.api.onechain-tms.com/api-reference/locations/get-all-locations.md): This endpoint returns all the locations of the account. - [Get one location](https://docs.api.onechain-tms.com/api-reference/locations/get-one-location.md): This endpoint returns the location corresponding to the given ID. - [Create an order preparation](https://docs.api.onechain-tms.com/api-reference/order-preparations/create-an-order-preparation.md): Create an order preparation with the information provided - [Fetch all order preparations](https://docs.api.onechain-tms.com/api-reference/order-preparations/fetch-all-order-preparations.md): Fetch all order preparations - [Fetch an order preparation](https://docs.api.onechain-tms.com/api-reference/order-preparations/fetch-an-order-preparation.md): Fetch an order preparation with its reference - [Create a purchase order](https://docs.api.onechain-tms.com/api-reference/purchase-orders/create-a-purchase-order.md): Create a purchase order with the information provided - [Fetch a purchase order](https://docs.api.onechain-tms.com/api-reference/purchase-orders/fetch-a-purchase-order.md): Fetch a purchase order with its reference - [Fetch all purchase orders](https://docs.api.onechain-tms.com/api-reference/purchase-orders/fetch-all-purchase-orders.md): Fetch all purchase orders - [Update a purchase order](https://docs.api.onechain-tms.com/api-reference/purchase-orders/update-a-purchase-order.md): Updates a purchase order with the information provided. The existing product quantities and details will be overridden with the information provided. The update is forbidden if the Purchase Order is already associated to a shipment. - [Fetch products delivery overview reporting](https://docs.api.onechain-tms.com/api-reference/reporting/fetch-products-delivery-overview-reporting.md): Fetch products delivery overview reporting - [Fetch a shipment](https://docs.api.onechain-tms.com/api-reference/shipments/fetch-a-shipment.md): Fetch a shipment given its OneChain shipment id - [Fetch all shipments](https://docs.api.onechain-tms.com/api-reference/shipments/fetch-all-shipments.md): Fetch all shipments of the account - [Fetch a shipment's tracking.](https://docs.api.onechain-tms.com/api-reference/tracking/fetch-a-shipments-tracking.md): Fetch a shipment's tracking with its OneChain shipment id. - [Fetch all users](https://docs.api.onechain-tms.com/api-reference/users/fetch-all-users.md): Fetch all users of the company - [Authentication](https://docs.api.onechain-tms.com/authentication.md): Learn how to authenticate with the ONECHAIN API - [Introduction](https://docs.api.onechain-tms.com/introduction.md): Welcome to the ONECHAIN API documentation - [Container](https://docs.api.onechain-tms.com/models/Container.md) - [Coordinates](https://docs.api.onechain-tms.com/models/Coordinates.md) - [DateWithTime](https://docs.api.onechain-tms.com/models/DateWithTime.md) - [Document](https://docs.api.onechain-tms.com/models/Document.md) - [Invoice](https://docs.api.onechain-tms.com/models/Invoice.md) - [Load](https://docs.api.onechain-tms.com/models/Load.md) - [Location](https://docs.api.onechain-tms.com/models/Location.md) - [OrderPreparation](https://docs.api.onechain-tms.com/models/OrderPreparation.md) - [Port](https://docs.api.onechain-tms.com/models/Port.md) - [Price](https://docs.api.onechain-tms.com/models/Price.md) - [Product](https://docs.api.onechain-tms.com/models/Product.md) - [PurchaseOrder](https://docs.api.onechain-tms.com/models/PurchaseOrder.md) - [Quantity](https://docs.api.onechain-tms.com/models/Quantity.md) - [Shipment](https://docs.api.onechain-tms.com/models/Shipment.md) - [SimpleDate](https://docs.api.onechain-tms.com/models/SimpleDate.md) - [Size](https://docs.api.onechain-tms.com/models/Size.md) - [Tracking](https://docs.api.onechain-tms.com/models/Tracking.md) - [TrackingDate](https://docs.api.onechain-tms.com/models/TrackingDate.md) - [TrackingEvent](https://docs.api.onechain-tms.com/models/TrackingEvent.md) - [TrackingStep](https://docs.api.onechain-tms.com/models/TrackingStep.md) - [User](https://docs.api.onechain-tms.com/models/User.md) - [Volume](https://docs.api.onechain-tms.com/models/Volume.md) - [Weight](https://docs.api.onechain-tms.com/models/Weight.md) - [Pagination](https://docs.api.onechain-tms.com/pagination.md): Learn how pagination works in the ONECHAIN API ## OpenAPI Specs - [openapi](https://docs.api.onechain-tms.com/openapi.json) ## Optional - [Discover OneChain](https://onechain-tms.com)