Obtener detalle de una venta
Sales
GET /v1/ecommerce/sales/:id
Read a single sale with its customer, line items, amounts, and payment state.
GET
Obtener detalle de una venta
Returns one sale by id. Use
GET /v1/ecommerce/sales to find the id, or take it from an ecommerce.sale.* webhook.
Endpoint
Required scope
ecommerce:sales:read
Headers
Path parameters
Example request
Response
200 OK
401 Unauthorized
Missing, invalid, revoked, or expired token.403 Forbidden
The token does not have theecommerce:sales:read scope.
404 Not Found
No sale with that id, or it belongs to a different company.502 Bad Gateway
The ecommerce service could not answer.Operational notes
- The id is the
ObjectId, not thesale_number. Passing1042returns400. - A sale mixes item kinds.
product,service, andcustomline items live in the sameitemsarray, and theamountsblock breaks the subtotals out by kind so you can split revenue without re-adding them yourself. payment_status: "partially_paid"means money is still owed.paid_atis the timestamp of the first payment, not of settlement — compareamounts.totalagainst your own ledger if you need the outstanding balance.customer_idis the CRM customer;chat_user_idis the contact. They are different records and either can be absent.