Oli Docs
01. Getting Started SDK02. Getting Started SDK-VOD03. Getting Started SDK-SHORT04. Vtex05. Shopify06. Woocommerce07. BraavoRequirementsRoutes IntegrationsCart CheckoutLive sharing initialize or finishGet products08. Linx09. Vipcommerce10. Vnda11. Jetcommerce12. Magento13. Webstorm

Getting Started Oli-Checkout

Integrations API from multiples platforms


Requirements

- URL
- Token
- Secret Token

Routes Integrations

- Router POST - /api/produtos/buscar
- Router POST - /api/pedidos/buscar/todos
- Router POST - /api/skus/buscar/id

Cart Checkout

Simple generate url to redirect users from shopping cart.

POST Router:

https://Domain/checkout/cart

Request:

{
"items": {
"id": "string",
"quantity": 0,
},
"clientProfileData": {
"liveId": "fake-ab1c-4b59-a65e-38283984ed46"
}
}

Response:

{
"message": "string",
"status": "string",
"data": {
"url": "https://domainClient.com.br/checkout/wsjrXFQYU8b6Gqc4wwR1jS7kqdamwtYU
}
}

Live sharing initialize or finish

Information initialize live sharing for actualized products in live or information finish live sharing get results in live.

POST Router:

https://Domain/checkout/status/live

Request:

Example start live

{
"isNewStartLive": true,
"clientProfileData": {
"liveId": "fake-ab1c-4b59-a65e-38283984ed46",
}
}

Response:

Response start live

{
{
"message": null,
"statusCode": 200,
"status": "SUCCESS",
"data": {
"skuId": "PU08W67272CHA34",
"totalQuantity": 4
}
},
{
"message": null,
"statusCode": 200,
"status": "SUCCESS",
"data": {
"skuId": "PU08W67272CHA34",
"totalQuantity": 3
}
},
... more items actualized
}

Request:

Example end live sharing

{
"isNewStartLive": false,
"clientProfileData": {
"liveId": "fake-ab1c-4b59-a65e-38283984ed46"
}
}

Response:

Example end live sharing

{
"SalesItems": {
"Count": 104,
"Items":[
{
"creationDate": "2022-02-10T23:28:14.0000000+00:00",
"orderId": "236744506123sa4d519457113f0065324",
"authorizedDate": "2022-02-10T23:28:21.0000000+00:00",
"orderFormId": "a2asd124506ec4d519457113f00653240",
"paymentApprovedDate": "2022-02-10T23:28:25.0000000+00:00",
},
]
}
}

Get products

Choice products from live

POST Router:

https://Domain/checkout/get/products

Request:

{
"keyword": "camisa",
"clientProfileData": {
"liveId": "1b929f5d-ab1c-4b59-a6e5-38283984ed46"
}
}

Response:

{
"data": [
{
"product": {
"productId": "PU08W22090CHA",
"productName": "Camisa Example in store",
"productTitle": "Camisa Example in store",
"description": "Description keyWord",
"metaTagDescription": "Meta Description KeyWord",
"Items": [
{
"images": [
{
"imageUrl": "https://domainClient/client/2022/04/08/10_4_8_855_pantachouchampagne2.jpg?v=1649440242"
}
],
"itemId": "PU08W22090CHA33",
"name": "Camisa Example in store - P",
"nameComplete": "Camisa Example in store - P",
"complementName": "Camisa Example in store",
"cores": [
"Rosa"
],
"tamanhos": [
"33"
]
},
{
"images": [
{
"imageUrl": "https://domainClient/client/2022/04/08/10_4_8_855_pantachouchampagne2.jpg?v=1649440242"
}
],
"itemId": "PU08W22090CHA34",
"name": "Camisa Example in store - M",
"nameComplete": "Camisa Example in store - M",
"complementName": "Camisa Example in store",
"cores": [
"Rosa"
],
"tamanhos": [
"34"
]
}
]
}
}
],
"status": "SUCCESS",
"statusCode": 200
}