Ventia
Sales

Get sale by ID

Retrieves a specific sale by its unique ID.

GET
/sales/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

Path Parameters

id*string

The unique ID of the sale.

Response Body

Successful response with sale data

application/json
  1. response
_id?string

Unique ID of the sale.

company?string

Company ID associated with the sale.

user?
createdAt?string

Date and time when the sale was created.

Formatdate-time
curl -X GET 'https://api.getventia.com/api/v1.0/sales/string'
{  "_id": "string",  "company": "string",  "user": {    "name": "string",    "lastname": "string"  },  "createdAt": "2019-08-24T14:15:22Z"}