Download OpenAPI specification:Download
A collection of resources that the Trébol backend exposes to interact with. Depends on, and references Trébol eCommerce API Commons v1.0.0
Fetch OPTIONS for communicating with this resource.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
Fetch OPTIONS for communicating with this resource.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
Fetch OPTIONS for communicating with this resource.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
POST cart details to initiate a virtual transaction in the shop.
method required | string Examples:
The payment method requested by the user. |
required | object (Product) A physical item or a service that the shop offers to the public. |
units required | integer The amount, or quantity of the related product. |
[- {
- "product": {
- "name": "example product",
- "barcode": "EXMPL000001",
- "price": 1000
}, - "units": 1
}
]
{- "token_ws": "a.token.that.the.payment.method.created.and.recognizes"
}
GET complete public information about a transaction, matched by its ID, code, or whatever unique property is used to identify it.
code required | string The transaction identifier |
{- "buyOrder": 1,
- "totalValue": 11000,
- "taxValue": 1000,
- "transportValue": 0,
- "status": "complete",
- "date": "2020-12-25 15:40:53 GMT",
- "details": [
- {
- "product": {
- "name": "example product",
- "price": 5000
}, - "units": 2
}
]
}
GET general information regarding the company behind the shop.
{- "name": "example shop owner details",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse arcu eros, semper id interdum ut, molestie ut ex. Nulla lobortis viverra tempor.",
}
GET the current user's stored profile information
{- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}
PUT changes into the current user's profile information.
email required | string The e-mail address. |
phone1 | string^(\(\+?(\d{3}|\d{2} ?\d)\)|\+?\d{3}|\+?\d{2}[... The preferred personal phone number |
phone2 | string^(\(\+?(\d{3}|\d{2} ?\d)\)|\+?\d{3}|\+?\d{2}[... A second phone number |
idNumber required | string The national identification number as issued by the individual's birth country government. |
firstName required | string The individual's first name. |
lastName required | string The individual's last or family name. |
{- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new product entity and save it to the data store
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new order entity and save it to the data store.
buyOrder | integer The unique number associated to an order. |
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new user entity and save it to the data store.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
name required | string A unique name that the user logs in with. |
object (Person) Personal information about an individual. | |
role | string The name of the role this user has. |
{- "name": "an username",
- "person": {
- "idNumber": "xxxxxxxx"
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new image entity and save it to the data store
filename required | string The file name of the image. |
url required | string The URL to find the image at. |
code required | string Unique identifier of the image. Allows URL-compatible characters only. |
{- "filename": "test.png",
- "code": "TESTIMAGE"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new product category entity and save it to the data store.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
name required | string The name displayed for the category. |
parent | object (ProductCategoryProperties) Recursive |
code required | string A unique identifier for the category. |
{- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new shipper entity and save it to the data store.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
name required | string The name of the representative. |
{- "name": "some text"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new product list entity and save it to the data store.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
totalCount | integer The total amount of products in the list |
name | string Unique name of the list |
code required | string Unique code of the list |
{- "name": "example list",
- "code": "EXAMPLE001",
- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a product entity and save it to the list.
listCode required | string The exact code of the list |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET the current user's stored profile information
{- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}
GET a paged collection of people.
pageSize | integer Number of people per page |
pageIndex | integer Index of page (0-based) |
sortBy | string People property to sort by |
order | string Examples:
People sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of products.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
pageSize | integer Number of products per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Product property to sort by |
order | string Examples:
Product sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of orders.
buyOrder | integer The unique number associated to an order. |
pageSize | integer Number of orders per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Order property to sort by |
order | string Examples:
Sort order direction (ascending or descending) |
date | string <date-time> The exact date & time of transaction. If invoked, |
afterDate | string <date-time> Minimum date & time to account transactions by (datetime range start) |
beforeDate | string <date-time> Limit date & time to account transactions by (datetime range end) |
statusCode | integer Numeric status code (such as pending, paid, delivered) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of users.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
pageSize | integer Number of users per page |
pageIndex | integer Index of page (0-based) |
sortBy | string User property to sort by |
order | string Examples:
User sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of images.
pageSize | integer Number of images per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Property to sort by |
order | string Examples:
Sort order (ascending/descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of product categories. By default, it fetches parent-less categories first.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
[- {
- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}
]
GET a paged collection of shippers.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
pageSize | integer Number of users per page |
pageIndex | integer Index of page (0-based) |
sortBy | string User property to sort by |
order | string Examples:
User sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of product lists.
pageSize | integer Number of lists per page |
pageIndex | integer Index of page (0-based) |
sortBy | string List property to sort by |
order | string Examples:
Lists sort order (ascending or descending) |
code | string The exact code of a list. Case sensitive. |
name | string The exact name of a list. Case sensitive. |
codeLike | string A portion of a list's code. Case insensitive. |
nameLike | string A portion of a list's name. Case insensitive. |
[- {
- "name": "example list",
- "code": "EXAMPLE001",
- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
]
GET a paged collection of product within a list's contents.
listCode required | string The exact code of the list |
pageSize | integer Number of products per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Product property to sort by |
order | string Examples:
Product sort order (ascending or descending) |
productCode | string The exact code of a product. Case sensitive. |
productCodeLike | string A portion of a product's code. Case insensitive. |
productNameLike | string A portion of a product's name. Case insensitive. |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT changes to all products matching the provided query parameters.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes to all orders matching the provided query parameters.
buyOrder | integer The unique number associated to an order. |
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes to all users matching the provided query parameters.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
name required | string A unique name that the user logs in with. |
object (Person) Personal information about an individual. | |
role | string The name of the role this user has. |
{- "name": "an username",
- "person": {
- "idNumber": "xxxxxxxx"
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes to all images matching the provided query parameters.
filename required | string The file name of the image. |
url required | string The URL to find the image at. |
code required | string Unique identifier of the image. Allows URL-compatible characters only. |
{- "filename": "test.png",
- "code": "TESTIMAGE"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes to all product categories matching the provided query parameters.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
name required | string The name displayed for the category. |
parent | object (ProductCategoryProperties) Recursive |
code required | string A unique identifier for the category. |
{- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes into the current user's profile information.
email required | string The e-mail address. |
phone1 | string^(\(\+?(\d{3}|\d{2} ?\d)\)|\+?\d{3}|\+?\d{2}[... The preferred personal phone number |
phone2 | string^(\(\+?(\d{3}|\d{2} ?\d)\)|\+?\d{3}|\+?\d{2}[... A second phone number |
idNumber required | string The national identification number as issued by the individual's birth country government. |
firstName required | string The individual's first name. |
lastName required | string The individual's last or family name. |
{- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes to all shippers matching the provided query parameters.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
name required | string The name of the representative. |
{- "name": "some text"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT changes to all product lists matching the provided query parameters.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
totalCount | integer The total amount of products in the list |
name | string Unique name of the list |
code required | string Unique code of the list |
{- "name": "example list",
- "code": "EXAMPLE001",
- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PUT provided products to replace the entire contents of the list.
listCode required | string The exact code of the list |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
[- {
- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
]
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes to the product matching the provided query parameters.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
name | string The given name of the product. |
barcode | string A unique identifier for the product. Normally issued by an external ERP service. |
price | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "string",
- "barcode": "string",
- "price": 0,
- "code": "string",
- "category": {
- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}, - "description": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into an order matching the provided query parameters.
buyOrder | integer The unique number associated to an order. |
Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. | |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
object (Person) Personal information about an individual. | |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "details": [
- {
- "product": {
- "barcode": "EXMPL000001"
}, - "units": 1,
- "unitValue": 1000
}
], - "billingType": "string",
- "billingAddress": {
- "firstLine": "first line test",
- "secondLine": "second line test",
- "city": "city example",
- "municipality": "municipality example",
- "postalCode": "postal code test",
- "notes": "lorem ipsum"
}, - "shippingAddress": {
- "firstLine": "first line test",
- "secondLine": "second line test",
- "city": "city example",
- "municipality": "municipality example",
- "postalCode": "postal code test",
- "notes": "lorem ipsum"
}, - "shipper": {
- "name": "some text"
}, - "date": "2019-08-24T14:15:22Z",
- "paymentType": "string",
- "salesperson": {
- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "netValue": 0,
- "status": "string",
- "buyOrder": 0,
- "customer": {
- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}, - "taxValue": 0,
- "totalValue": 0,
- "totalItems": 0,
- "token": "string",
- "transportValue": 0
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the user matching the provided query parameters.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
name | string A unique name that the user logs in with. |
object (Person) Personal information about an individual. | |
role | string The name of the role this user has. |
{- "name": "string",
- "person": {
- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}, - "role": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the image tahat matches the provided query parameters.
filename | string The file name of the image. |
url | string The URL to find the image at. |
code | string Unique identifier of the image. Allows URL-compatible characters only. |
{- "filename": "string",
- "url": "string",
- "code": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the product category matching the provided query parameters.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
name | string The name displayed for the category. |
parent | object (ProductCategoryProperties) Recursive |
code | string A unique identifier for the category. |
{- "name": "string",
- "parent": { },
- "code": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the shipper matching the provided query parameters.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
name | string The name of the representative. |
{- "name": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes to the product list matching the provided query parameters.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
totalCount | integer The total amount of products in the list |
name | string Unique name of the list |
code | string Unique code of the list |
{- "totalCount": 0,
- "name": "string",
- "code": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE products matching the provided query parameters, from the data store.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE orders matching the provided query parameters, from the data store.
buyOrder | integer The unique number associated to an order. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE users matching the provided query parameters, from the data store.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE product categories matching the provided query parameters, from the data store.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE shippers matching the provided query parameters, from the data store.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE product listsmatching the provided query parameters, from the data store.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE products matching the provided query parameters, from the list.
listCode required | string The exact code of the list |
productCode | string The exact code of a product. Case sensitive. |
productCodeLike | string A portion of a product's code. Case insensitive. |
productNameLike | string A portion of a product's name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of images.
pageSize | integer Number of images per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Property to sort by |
order | string Examples:
Sort order (ascending/descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT changes to all images matching the provided query parameters.
filename required | string The file name of the image. |
url required | string The URL to find the image at. |
code required | string Unique identifier of the image. Allows URL-compatible characters only. |
{- "filename": "test.png",
- "code": "TESTIMAGE"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new image entity and save it to the data store
filename required | string The file name of the image. |
url required | string The URL to find the image at. |
code required | string Unique identifier of the image. Allows URL-compatible characters only. |
{- "filename": "test.png",
- "code": "TESTIMAGE"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the image tahat matches the provided query parameters.
filename | string The file name of the image. |
url | string The URL to find the image at. |
code | string Unique identifier of the image. Allows URL-compatible characters only. |
{- "filename": "string",
- "url": "string",
- "code": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of products.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
pageSize | integer Number of products per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Product property to sort by |
order | string Examples:
Product sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT changes to all products matching the provided query parameters.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new product entity and save it to the data store
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes to the product matching the provided query parameters.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
name | string The given name of the product. |
barcode | string A unique identifier for the product. Normally issued by an external ERP service. |
price | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "string",
- "barcode": "string",
- "price": 0,
- "code": "string",
- "category": {
- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}, - "description": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE products matching the provided query parameters, from the data store.
barcode | string The exact barcode of the product. Case sensitive. |
barcodeLike | string A portion of the product's barcode. Case insensitive. |
name | string The exact name of the product. Case sensitive. |
nameLike | string A portion the product's name. Case insensitive. |
categoryCode | string The exact code of the product's category. Case sensitive. |
categoryCodeLike | string A portion of the product category's code. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of product categories. By default, it fetches parent-less categories first.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
[- {
- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}
]
PUT changes to all product categories matching the provided query parameters.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
name required | string The name displayed for the category. |
parent | object (ProductCategoryProperties) Recursive |
code required | string A unique identifier for the category. |
{- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new product category entity and save it to the data store.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
name required | string The name displayed for the category. |
parent | object (ProductCategoryProperties) Recursive |
code required | string A unique identifier for the category. |
{- "code": 3,
- "name": "example category",
- "parent": {
- "code": 2
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the product category matching the provided query parameters.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
name | string The name displayed for the category. |
parent | object (ProductCategoryProperties) Recursive |
code | string A unique identifier for the category. |
{- "name": "string",
- "parent": { },
- "code": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE product categories matching the provided query parameters, from the data store.
parentCode | string The code of a parent category. If left empty, no exclusions are made. Valid numbers exclude root categories.
|
code | string The code of the category. When specified, rules out all other query parameters. |
name | string The exact name of the category. Case sensitive. |
nameLike | string A portion of the category's name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of product lists.
pageSize | integer Number of lists per page |
pageIndex | integer Index of page (0-based) |
sortBy | string List property to sort by |
order | string Examples:
Lists sort order (ascending or descending) |
code | string The exact code of a list. Case sensitive. |
name | string The exact name of a list. Case sensitive. |
codeLike | string A portion of a list's code. Case insensitive. |
nameLike | string A portion of a list's name. Case insensitive. |
[- {
- "name": "example list",
- "code": "EXAMPLE001",
- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
]
PUT changes to all product lists matching the provided query parameters.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
totalCount | integer The total amount of products in the list |
name | string Unique name of the list |
code required | string Unique code of the list |
{- "name": "example list",
- "code": "EXAMPLE001",
- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new product list entity and save it to the data store.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
totalCount | integer The total amount of products in the list |
name | string Unique name of the list |
code required | string Unique code of the list |
{- "name": "example list",
- "code": "EXAMPLE001",
- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes to the product list matching the provided query parameters.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
totalCount | integer The total amount of products in the list |
name | string Unique name of the list |
code | string Unique code of the list |
{- "totalCount": 0,
- "name": "string",
- "code": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE product listsmatching the provided query parameters, from the data store.
code | string The exact code of the list |
name | string The exact name of the list. Case sensitive. |
nameLike | string A portion of the list name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of product within a list's contents.
listCode required | string The exact code of the list |
pageSize | integer Number of products per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Product property to sort by |
order | string Examples:
Product sort order (ascending or descending) |
productCode | string The exact code of a product. Case sensitive. |
productCodeLike | string A portion of a product's code. Case insensitive. |
productNameLike | string A portion of a product's name. Case insensitive. |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT provided products to replace the entire contents of the list.
listCode required | string The exact code of the list |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
[- {
- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
]
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a product entity and save it to the list.
listCode required | string The exact code of the list |
name required | string The given name of the product. |
barcode required | string A unique identifier for the product. Normally issued by an external ERP service. |
price required | number The price of the product, valued by the store's local currency. |
Array of objects (Image) A list of images that illustrate this product. | |
code | string A unique identifier for the product. Read-only after creation. |
object (ProductCategory) A Product group/category. Each one can be divided into smaller subsets (ProductType). | |
description | string A summary of the product qualities |
{- "name": "example product",
- "barcode": "EXMPL00001",
- "category": {
- "name": "example product category"
}, - "price": 1000,
- "images": [
]
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE products matching the provided query parameters, from the list.
listCode required | string The exact code of the list |
productCode | string The exact code of a product. Case sensitive. |
productCodeLike | string A portion of a product's code. Case insensitive. |
productNameLike | string A portion of a product's name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of people.
pageSize | integer Number of people per page |
pageIndex | integer Index of page (0-based) |
sortBy | string People property to sort by |
order | string Examples:
People sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
GET a paged collection of orders.
buyOrder | integer The unique number associated to an order. |
pageSize | integer Number of orders per page |
pageIndex | integer Index of page (0-based) |
sortBy | string Order property to sort by |
order | string Examples:
Sort order direction (ascending or descending) |
date | string <date-time> The exact date & time of transaction. If invoked, |
afterDate | string <date-time> Minimum date & time to account transactions by (datetime range start) |
beforeDate | string <date-time> Limit date & time to account transactions by (datetime range end) |
statusCode | integer Numeric status code (such as pending, paid, delivered) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT changes to all orders matching the provided query parameters.
buyOrder | integer The unique number associated to an order. |
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new order entity and save it to the data store.
buyOrder | integer The unique number associated to an order. |
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into an order matching the provided query parameters.
buyOrder | integer The unique number associated to an order. |
Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. | |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
object (Person) Personal information about an individual. | |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "details": [
- {
- "product": {
- "barcode": "EXMPL000001"
}, - "units": 1,
- "unitValue": 1000
}
], - "billingType": "string",
- "billingAddress": {
- "firstLine": "first line test",
- "secondLine": "second line test",
- "city": "city example",
- "municipality": "municipality example",
- "postalCode": "postal code test",
- "notes": "lorem ipsum"
}, - "shippingAddress": {
- "firstLine": "first line test",
- "secondLine": "second line test",
- "city": "city example",
- "municipality": "municipality example",
- "postalCode": "postal code test",
- "notes": "lorem ipsum"
}, - "shipper": {
- "name": "some text"
}, - "date": "2019-08-24T14:15:22Z",
- "paymentType": "string",
- "salesperson": {
- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "netValue": 0,
- "status": "string",
- "buyOrder": 0,
- "customer": {
- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}, - "taxValue": 0,
- "totalValue": 0,
- "totalItems": 0,
- "token": "string",
- "transportValue": 0
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE orders matching the provided query parameters, from the data store.
buyOrder | integer The unique number associated to an order. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST confirmation of a given order
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST rejection of a given order
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST completion of a given order
required | Array of objects (Root Type for OrderDetail) A list that provides full information about the acquired products or services. |
billingType | string The name of the chosen method for generating a bill of the order. |
object (Root Type for Address) Information about a physical address. | |
object (Root Type for Address) Information about a physical address. | |
object (Shipper) External representatives that handle shipping. | |
date required | string <date-time> (UTC) The date and time that the transaction was acknowledged. |
paymentType required | string The selected method for payment for this transaction. |
object (Person) Personal information about an individual. | |
object (Root Type for BillingCompany) A company or similar organization, enabled to pay taxes. | |
netValue | number The total value derived from the products included at the moment of transaction. |
status | string The step that the transaction is in. |
buyOrder | integer Unique transaction identifier. |
required | object (Person) Personal information about an individual. |
taxValue | number The amount of income destined to pay taxes. |
totalValue | number The sum between net, transport and taxes values. |
totalItems | integer The sum amount of product units purchased. |
token | string An unique code that identifies the transaction. |
transportValue | number The amount paid for transport. |
{- "buyOrder": 1,
- "details": [
- {
- "product": {
- "barcode": "some text"
}, - "units": 42
}
], - "billingType": "some text",
- "billingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "billingCompany": {
- "idNumber": "some text",
- "name": "some text"
}, - "shippingAddress": {
- "firstLine": "some text",
- "secondLine": "some text",
- "city": "some text",
- "municipality": "some text",
- "postalCode": "some text",
- "notes": "some text"
}, - "shipper": {
- "name": "some text"
}, - "status": "Pending",
- "date": "2018-02-10T09:30Z",
- "paymentType": "some payment method",
- "customer": {
- "idNumber": "some text"
}, - "salesperson": {
- "idNumber": "some text"
}, - "token": "ANSDg900viery9e",
- "netValue": 549.99,
- "taxValue": 30.15,
- "transportValue": 0,
- "totalValue": 580.14,
- "totalItems": 42
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of shippers.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
pageSize | integer Number of users per page |
pageIndex | integer Index of page (0-based) |
sortBy | string User property to sort by |
order | string Examples:
User sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT changes to all shippers matching the provided query parameters.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
name required | string The name of the representative. |
{- "name": "some text"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new shipper entity and save it to the data store.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
name required | string The name of the representative. |
{- "name": "some text"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the shipper matching the provided query parameters.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
name | string The name of the representative. |
{- "name": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE shippers matching the provided query parameters, from the data store.
name | string The exact name of the shipper. Case sensitive. |
nameLike | string A portion of the shipper's name. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
GET a paged collection of users.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
pageSize | integer Number of users per page |
pageIndex | integer Index of page (0-based) |
sortBy | string User property to sort by |
order | string Examples:
User sort order (ascending or descending) |
{- "items": [
- {
- "name": "example product",
- "code": "EXMPL001"
}, - {
- "name": "example product 2",
- "code": "EXMPL002"
}
], - "pageIndex": 2,
- "totalCount": 32,
- "pageSize": 15
}
PUT changes to all users matching the provided query parameters.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
name required | string A unique name that the user logs in with. |
object (Person) Personal information about an individual. | |
role | string The name of the role this user has. |
{- "name": "an username",
- "person": {
- "idNumber": "xxxxxxxx"
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
POST a new user entity and save it to the data store.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
name required | string A unique name that the user logs in with. |
object (Person) Personal information about an individual. | |
role | string The name of the role this user has. |
{- "name": "an username",
- "person": {
- "idNumber": "xxxxxxxx"
}
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
PATCH changes into the user matching the provided query parameters.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
name | string A unique name that the user logs in with. |
object (Person) Personal information about an individual. | |
role | string The name of the role this user has. |
{- "name": "string",
- "person": {
- "firstName": "Isaac Sebastian",
- "lastName": "Williams McGregor",
- "idNumber": "123456789-0",
- "email": "example@email.com",
- "phone1": "(+512)784 876 823",
- "phone2": "4444 9820"
}, - "role": "string"
}
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}
DELETE users matching the provided query parameters, from the data store.
name | string The exact name of the user. Case sensitive. |
nameLike | string A portion of the user's name. Case insensitive. |
emailLike | string A portion of the user's email address. Case insensitive. |
{- "code": "string",
- "message": "string",
- "detailMessage": "string",
- "canRetry": true
}