Suppliers¶
Endpoints for listing, creating, and updating supplier records.
GET /suppliers¶
List suppliers with optional filtering and pagination.
Request¶
Parameters¶
| Name | In | Type | Required | Description |
|---|---|---|---|---|
nonce |
query | integer (int64) | No | Client-generated unique sequential number |
searchString |
query | string | No | Search by supplier code or number |
searchColumn |
query | string | No | Column to search instead of the default field |
searchOperator |
query | string | No | Comparison operator: lt, lte, gt, gte, ne |
limit |
query | integer | No | Max records to return. Max: 1000, default: 50 |
Responses¶
200 — Success¶
Returns an array of thirdParty objects (empty array if none found).
400 — Invalid input parameters¶
POST /suppliers¶
Add a new supplier to the system.
Request¶
POST /api/{account}/v4.0.0/suppliers?nonce={nonce}
Authorization: Bearer <xa-token>
Content-Type: application/json
Parameters¶
| Name | In | Type | Required | Description |
|---|---|---|---|---|
nonce |
query | integer (int64) | Yes | Client-generated unique sequential number |
Request Body¶
A thirdParty object.
Responses¶
201 — Created¶
Returns an entityCreated object.
400 — Invalid input¶
Returns an apiError.
409 — Duplicate entry¶
PUT /suppliers¶
Update an existing supplier record.
Request¶
PUT /api/{account}/v4.0.0/suppliers?nonce={nonce}
Authorization: Bearer <xa-token>
Content-Type: application/json
Parameters¶
| Name | In | Type | Required | Description |
|---|---|---|---|---|
nonce |
query | integer (int64) | Yes | Client-generated unique sequential number |
Request Body¶
A thirdParty object with the id or identifying code of the record to update.