Botifi.me

Outcoming requests (External Endpoint Integration)

Authorization#

Currently, one authentication method is available - through the transmission of Basic Authorization in the HTTP header. Example:

Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l

Unloading a category of goods#

GET {root_endpoint}/categories

Required response structure:

count* integer
results* [{
id* integer
name* string
maxLength: 200
minLength: 1
parent_id* integer
x-nullable: true
}]

Demo: https://botifi.me/api/demodata/categories

Unloading goods#

GET {root_endpoint}/products

Required response structure:

count* integer
results* [{
id* integer
name* string
maxLength: 255
minLength: 1
description string
x-nullable: true
brand string
maxLength: 128
x-nullable: true
cost number
x-nullable: true
currency string
Enum:
[ uzs, usd, rub, tjs, kgs, kzt ]
qty integer
maximum: 2147483647
minimum: 0
x-nullable: true
measurement integer
Enum:
[ 1, 2, 3, 4 ]
category_id* integer
discount integer
maximum: 2147483647
minimum: 0
x-nullable: true
discount_type string
x-nullable: true
Enum:
[ p, c ]
sku string
maxLength: 250
x-nullable: true
gallery* [string]
}]

Demo: https://botifi.me/api/demodata/products

Sending orders (Order Webhook)#

POST {root_endpoint}/orders/ 

Responses:

- on successful processing of the request, return 200 or 201 status code, from the "id" fields in your system

{
    "id": 123
}

- on processing error, return "message" field with error text

{
    "message": "Error on handling request"
}

- request processing time - 5 seconds, after the request is reset with a 408 Timeout Error

Was the article useful?
+ Create a bot for sales
Интеграция с Click.uz Online store
Русский O`zbekcha 中文