ErrorResponse
successbooleanrequiredSuccess status
falsemessagestringHuman-readable error message
errorstringStable machine-readable error name, when provided
error_codeintegerMachine-readable error code, when provided
message_codeintegerPOS business message code, when provided
permissionstringRequired permission, when access is denied
OrderMessage
idstringMessage identifier
typestringnullPlatform-specific message type, such as INBOX or COMMENT
messagestringRendered message content, which may contain HTML
original_messagestringnullOriginal message text before rendering
message_tagsarray<object>Extensible metadata for entities detected in the message
fromobjectExtensible sender information supplied by the messaging platform
seenbooleanWhether the message has been seen
can_likebooleanWhether the page can like the message
user_likesbooleanWhether the page has liked the message
like_countintegernullNumber of likes
can_commentbooleanWhether the page can comment on the message
comment_countintegernullNumber of replies
Order
idintegerOrder ID
system_idintegerSystem ID
shop_idintegerShop ID
inserted_atstring · date-timeOrder creation time
updated_atstring · date-timeOrder update time
statusintegerOrder status
0New17Waiting for confirmation11Restocking12Wait for printing13Printed20Purchased1Confirmed8Packaging9Waiting for pick up2Shipped3Received16Collected money4Returning15Partial return5Returned6Canceled7Deleted recentlystatus_namestringOrder status name
bill_full_namestringCustomer name
bill_phone_numberstringPhone number of customer
bill_emailstringCustomer email
conversation_idstringConversation ID
page_idstringFacebook page ID
OrderInfo
idintegerOrder ID
system_idintegerSystem ID
shop_idintegerShop ID
inserted_atstring · date-timeOrder creation time
updated_atstring · date-timeOrder update time
statusintegerOrder status
0New17Waiting for confirmation11Restocking12Wait for printing13Printed20Purchased1Confirmed8Packaging9Waiting for pick up2Shipped3Received16Collected money4Returning15Partial return5Returned6Canceled7Deleted recentlystatus_namestringOrder status name
bill_full_namestringCustomer name
bill_phone_numberstringPhone number of customer
bill_emailstringCustomer email
conversation_idstringConversation ID
page_idstringFacebook page ID
EInvoice
actual_shipping_feeintegerShipping fee
adjust_amountintegernullablePercentage reduction on revenue
adjustment_criteriaintegernullableAdjustment criteria
1Quantity adjustment2Price adjustment3Tax rate adjustment4Tax amount adjustmentadjustment_typeintegernullableAdjustment type
1Increase adjustment2Decrease adjustment3Informationallocation_discountsarray<object>Allocation discounts
allocation_typeintegerAllocation type
1By unit price2custombank_account_numberstringnullableBank account number
bank_namestringnullableBank name
budget_unit_codestringnullableBudget unit code
buyer_not_get_invoicebooleanBuyer not get invoice
creatorobjectnullableCreator information
discountintegerGeneral discount amount
ShippingAddress
addressstringnullableStreet address. When creating an order via API, if address is provided but province_id is left empty, the system automatically parses this free-text address to fill in province_id, district_id and commune_id. Auto-fill is skipped when the parsed location is in Thailand (country code 66) or when no commune can be resolved from the text.
commnue_namestringnullableCommune name
commune_idstringnullableCommune ID
country_codestringnullableCountry code
district_idstringnullableDistrict ID
district_namestringnullableDistrict name
full_addressstringnullableFull address
full_namestringnullableFull name
new_full_addressstringnullableNew full address
new_province_idstringnullableNew province ID
phone_numberstringnullablePhone number
post_codestringnullablePost code
province_idstringnullableProvince ID
province_namestringnullableProvince name
render_typestringnullableRender type
ReturnOrder
idintegerReturn order ID
display_idintegerDisplay ID
bill_full_namestringCustomer name
bill_phone_numberstringPhone number of customer
creator_idstringCreator ID
custom_idstringCustom ID
discountintegerDiscount total
discount_from_order_to_returnedintegerDiscount from order to returned
inserted_atstring · date-timeCreated at
updated_atstring · date-timeUpdated at
order_idintegerOrder ID
order_id_to_returnedintegerOrder ID to returned
Shop
avatar_urlstringAvatar image link
namestringShop name
currencystringShop currency code, for example VND
idintegerShop ID
preferred_shopintegernullUser-specific preferred shop rank. Lower values have higher priority
pagesarray<object>Pages information in shop
link_post_marketerarray<object>Information of link post / source / AD account with marketer
Warehouse
idstringWarehouse ID
namestringWarehouse name
addressstringWarehouse address
full_addressstringWarehouse full address
phone_numberstringWarehouse phone number
province_idstringProvince ID. For a Viet Nam warehouse using the new (2-level, post-merger) address, this is the new province ID (e.g. 84_VN102)
district_idstringnullableDistrict ID. Always null for a Viet Nam warehouse using the new address (no district level)
commune_idstringnullableCommune ID. For a Viet Nam warehouse using the new address, this is the new commune ID (e.g. 84_VN10236)
country_codestringCountry code
shop_idintegerShop ID
allow_create_orderbooleanAllow create order
custom_idstringCustom ID
affiliate_shop_idintegerAffiliate shop ID
affiliate_warehousestringAffiliate warehouse name
VariationWarehouse
idstringVariation-warehouse record ID
variation_idstringVariation ID
warehouse_idstringWarehouse ID
shop_idintegerShop ID
remain_quantityintegerSellable quantity. May include incoming/waiting stock depending on shop settings.
available_quantityintegerremain_quantity clamped to be non-negative (max(0, remain_quantity)).
actual_remain_quantityintegerQuantity physically on hand in the warehouse.
total_quantityintegerTotal quantity recorded at this warehouse.
waitting_quantityintegerQuantity tied up in orders that are awaiting stock (orders placed but waiting for goods to arrive). (Field name keeps the legacy waitt- spelling.)
pending_quantityintegerQuantity reserved by pending purchase orders.
transfer_quantityintegerQuantity currently being transferred out.
pending_transfer_quantityintegerQuantity pending transfer (not yet shipped between warehouses).
VariationSize
lengthintegerLength
widthintegerWidth
heightintegerHeight
RetailPriceByCurrency
currencystringrequiredCurrency code (ISO 4217)
retailPriceByCurrencynumberstringrequiredRetail price in this currency. Requests accept a number; responses return it as a string.
Variation
idstringVariation ID
fieldsarray<object>Variation fields
imagesarray<string · uri>Variation images
last_imported_priceintegerImported price
retail_priceintegerVariation retail price
price_at_counterintegerCounter price
retail_price_by_currencyarray<RetailPriceByCurrency>Retail prices by currency (for shops using multiple currencies). If sent, the list is saved as is, so include every currency you want to keep. If omitted while retail_price is sent and the shop uses multiple currencies, the price of the shop's default currency is synced from retail_price.
weightintegerVariation weight
sizeVariationSizeVariation size (dimensions)
barcodestringVariation barcode
custom_idstringVariation custom ID
is_hiddenbooleanStore cake status variation
Product
namestringrequiredProduct name
weightintegerrequiredProduct weight
measure_group_idintegerMeasure group ID
typestringProduct type. product: Product (default). accessory: Accessory, comes with orders, has no retail price (retail price is reset to 0) and is not counted in sold quantity reports. service: Service, inventory is not managed. LOT: Product with expiry date, inventory is managed by lot and a lot must be chosen when importing or exporting stock (requires the shop to enable lot management).
"product""accessory""service""LOT"category_idsarray<integer>Category IDs
notestringInternal note
note_productstringProduct note
product_attributesarray<object>Product attributes
tagsarray<integer>Product tags
custom_idstringProduct custom ID
is_publishedbooleanStore cake status
variationsarray<Variation>Product variations
Customer
idstringCustomer ID
namestringFull name
genderstringGender
emailsarray<string>Email addresses
phone_numbersarray<string>Phone numbers
pages_customersarray<object>Customer's linked pages
date_of_birthstring · dateDate of birth
reward_pointnumberReward point
is_discount_by_levelbooleanDiscount based on level
tagsarray<string>Customer tags
is_blockbooleanBlock customer
assigned_user_idstringAssigned employee ID
eCommerceProduct
idstringProduct ID on eCommerce platform
linked_product_custom_idstringLinked product ID
linked_product_namestringLinked product name
marketplace_idstringMarketplace ID
marketplace_shop_namestringMarketplace shop name
namestringProduct name on eCommerce platform
priceintegerProduct price
skustringProduct SKU
variationsarray<object>Product variations
warehousestringWarehouse name
Transaction
idstringTransaction ID
display_idstringTransaction ID
namestringTransaction name
notestringNote
amountintegerAmount of money
statusintegerStatus
-1All status0New1Effective2Canceled3Deletedis_lockedbooleanLocked
is_canceledbooleanIs canceled
is_accountingbooleanFinancial accounting
payment_debts_to_suppliersbooleanPaying off debts to suppliers
paymentsarray<string>Payment method
tag_idsarray<string>Transaction tags
Debt
idstringDebt ID
display_idintegerDebt ID
name_debtstringDebt name
descriptionstringDescription
statusintegerStatus
-1All status0Not transacted / Partial payment1Traded2CanceledtypeintegerDebt type (0: Debt must pay / 1: Debt must collect)
money_must_pay_or_collectintegerTotal amount to be paid / Total amount to be collected
money_payed_or_collectedintegerPaid amount / Collected amount
currencystringCurrency
shop_idintegerShop ID
shop_customer_idstringCustomer ID
shop_customerobjectCustomer information
Project
idintegerProject ID
imagestring · urinullableProject image URL
inserted_atstring · date-timeCreated timestamp
namestringProject name
nodesarray<ProjectNode>Child source orders of project
shop_idintegerShop ID
updated_atstring · date-timeUpdated timestamp
ProjectNode
idintegerSource order ID
imagestring · urinullableSource order image URL
inserted_atstring · date-timeCreated timestamp
namestringSource order name
nodesarray<ProjectNode>Child source orders
parent_idintegernullableParent source order ID
project_idintegernullableProject ID
shop_idintegerShop ID
updated_atstring · date-timeUpdated timestamp
custom_idstringnullableCustom source order ID
link_source_idintegernullableLink source ID
Category
dataobjectProduct category information
successbooleanSuccess status
Brand
idstring · uuidBrand ID
namestringBrand name
descriptionstringnullableBrand description
display_idintegerDisplay ID
shop_idintegerShop ID
inserted_atstring · date-timeCreated time
updated_atstring · date-timeUpdated time
Purchase
idstringPurchase ID
display_idintegerPurchase ID
statusintegerStatus
-2All status-1New0Confirmed1Imported goods2Canceledtime_importstring · date-timeTime import
total_quantityintegerTotal quantity
total_remain_quantityintegerTotal remain quantity
total_priceintegerTotal purchase price
total_remain_priceintegerTotal remain price
notestringNote
warehouse_idstringWarehouse ID
supplier_products_idintegerSupplier products ID
supplierobjectSupplier information
Export
idstringExport ID
display_idintegerExport ID
statusintegerExport status
0New (type 0) / Defect export (type 1)1Completed (type 0) / Elimination export (type 1)2CanceledtypeintegerType of export
0Normal export1Product defect exporttotalintegerTotal quantity
total_priceintegerTotal export price
notestringNote
warehouse_idstringWarehouse ID
supplier_products_idintegerSupplier products ID
tagsarray<integer>Tag IDs
export_itemsarray<object>List of products
imagesarray<string · uri>Export images
WarehouseTransfer
idstringTransfer ID
display_idintegerTransfer ID
statusintegerStatus
0Waiting for pick up1Shipping2Completedfrom_warehouse_idstringFrom warehouse ID
from_warehouse_namestringFrom warehouse name
to_warehouse_idstringTo warehouse ID
to_warehouse_namestringTo warehouse name
total_quantityintegerTotal quantity
shipping_feeintegerShipping fee
notestringNote
itemsarray<object>List of products
imagesarray<string · uri>Transfer images
Stocktaking
idstringStocktaking ID
display_idintegerStocktaking ID
statusintegerStatus
-2All status-1Creating0Stocktaking1Stocktook2Canceledwarehouse_idstringWarehouse ID
stocktaking_bystringStocktaking by
stocktaking_by_valuearray<string>Category ID / Supplier products ID / Brand ID
stocktaking_atstring · date-timeStocktaking at
progressintegerProcessing percentage
notestringNote
itemsarray<object>List of products
shop_idintegerShop ID
creator_idstringCreator ID
inserted_atstring · date-timeInserted at
updated_atstring · date-timeUpdated at
updated_status_atstring · date-timeUpdated status at
LotProduct
idstringLot ID
custom_idstringLot code
expire_datestring · date-timeExpiry date (UTC)
manufacturing_datestring · date-timeManufacturing date (UTC)
inserted_atstring · date-timeCreated at
updated_atstring · date-timeUpdated at
productLotProductInfoProduct of the lot (variations are not included)
lot_variationsarray<object>Variations of the product linked to this lot
LotProductInfo
idstringProduct ID
namestringProduct name
typestringProduct type, always LOT for expiry-date products
custom_idstringnullableProduct custom ID
display_idintegerProduct display ID
imagestringnullableProduct image URL
is_publishedbooleannullableStore cake status
is_sell_negativebooleannullableAllow selling with negative stock
notestringnullableInternal note
note_productstringProduct note (HTML)
measure_group_idintegernullableMeasure group ID
brand_idstringnullableBrand ID
CallLater
idstringID
display_idintegerCall later and remind ID
called_atstring · date-timeCalled at / Process at
needs_call_atstring · date-timeNeed call at / Need process at
notice_createdstringNotice information
order_display_idstringOrder ID
order_idintegerOrder ID
statusintegerStatus
-1All status0No process3Calling / Processing1Processed2Not listening / Unsuccessful7RemovedtypestringNotification type
need_notify_usersarray<string>Process staff
creatorobjectCreator information
phone_numberstringPhone number
Voucher
idstringVoucher ID
display_idintegerVoucher ID
namestringVoucher name
typestringVoucher type
start_timestring · date-timeVoucher start time
end_timestring · date-timeVoucher end time
promo_code_infoobjectVoucher promo code information
is_free_shippingbooleanIs free shipping
is_activatedbooleanIs activated
is_usedbooleanIs used
customer_tagsarray<string>Customer tags
shop_idintegerShop ID
creator_idstringCreator ID
inserted_atstring · date-timeInserted at
updated_atstring · date-timeUpdated at
Promotion
idstringPromotion ID
display_idstringPromotion display ID
namestringPromotion name
typestringPromotion type
start_timestring · date-timeStart time
end_timestring · date-timeEnd time
warehouse_idsarray<string>Warehouse IDs
customer_tagsarray<string>Customer tags
order_sourcesarray<object>Order sources
group_namestringPromotion group
is_activatedbooleanIs activated
is_variationbooleanIs variation
LivestreamManager
creatorobjectCreator information
end_timestringEnd time of the livestream session
finisherobjectFinisher information
idstringLivestream session ID
inserted_atstringCreated date
namestringLivestream session name (campaign)
origin_post_idstringOrigin post ID
post_idsarray<string>List of post IDs
remain_warehouse_idsarray<string>List of inventory sync warehouse IDs
shop_idintegerShop ID
start_timestringStart time of the livestream session
total_commentsintegerTotal number of comments
total_customersintegerTotal number of customers
warehouse_idstringOrder creation warehouse ID
PaginatedResponse
dataarray<any>List of items
page_numberintegerPage number
page_sizeintegerPage size
successbooleanSuccess status
total_entriesintegerTotal entries
total_pagesintegerTotal pages
SimpleResponse
successbooleanSuccess status
DataResponse
dataanyResponse data
successbooleanSuccess status
WebhookOrderResponse
WebhookCustomerResponse
WebhookProductResponse
dataobjectWebhookInventoryResponse
dataobjectWebhookAutoCallResponse
typestringshop_idintegerorder_idstringOrder ID or code used to trigger the call
phone_numberstringansweredbooleanWhether the callee picked up
dtmfstringnullableDigits the callee pressed (null if none)
AdAccount
successbooleanSuccess status
dataarray<object>List of ad accounts
page_numberintegerCurrent page number
page_sizeintegerNumber of records per page
total_entriesintegerTotal number of ad accounts
total_pagesintegerTotal number of pages
CampaignListResponse
successbooleanSuccess status
dataarray<object>List of campaigns
summaryobjectAggregated performance metrics across all campaigns
page_numberintegerCurrent page number
page_sizeintegerNumber of records per page
total_entriesintegerTotal number of campaigns
total_pagesintegerTotal number of pages
AdSetListResponse
successbooleanSuccess status
dataarray<object>List of ad sets
summaryobjectAggregated performance metrics across all ad sets
page_numberintegerCurrent page number
page_sizeintegerNumber of records per page
total_entriesintegerTotal number of ad sets
total_pagesintegerTotal number of pages
AdListResponse
successbooleanSuccess status
dataarray<object>List of ads
summaryobjectAggregated performance metrics across all ads
page_numberintegerCurrent page number
page_sizeintegerNumber of records per page
total_entriesintegerTotal number of ads
total_pagesintegerTotal number of pages
Reconciliation
system_idintegerInternal session ID. Use it for the system_id filter
display_idintegerSession code shown on the shop screen
custom_idstringnullableCode set by the shop or the marketplace (e.g. statement ID)
partner_idstringnullableShipping partner ID on Pancake system
control_typestringSession type. Very old sessions without a type are returned as all
"control_cod"COD reconciliation"control_fee"Shipping fee reconciliation"all"COD and shipping fee reconciliation"merge"Session merged from ordersnotestringnullableNote
excel_codintegernullableTotal COD according to the carrier statement
excel_feeintegernullableTotal shipping fee according to the carrier statement
pos_codintegernullableTotal COD according to POS orders
paid_atstring · date-timenullablePayment time of the session
payment_statusstringPayment status
"paid"Paid"unpaid"UnpaidcreatoranynullableUser who created the session
ReconciliationUser
idstring · uuidUser ID
namestringnullableUser name. Null when the user was deleted from the system
ReconciliationOrder
order_idintegerInternal order ID (system_id of the order)
display_idintegernullableOrder ID shown on the shop (id of the order)
custom_idstringnullableCustom order code set by the shop
extend_codestringnullableTracking code from the shipping partner
order_number_vtpstringnullableViettel Post order number
order_statusintegernullableOrder status at the time the order was added to the session. Same values as status of the order
resultstringnullableReconciliation result of the order in this session
"succeed"Matched"mismatch"Mismatched amount"failed"Not reconciled (order not found or invalid)messagestringnullableReason when the order could not be reconciled
cod_amountintegernullableCOD amount according to the shipping partner. Null when this session does not reconcile COD for the order
partner_feeintegernullableShipping fee according to the shipping partner
pos_codintegernullableCOD amount of the order on POS
currencystringnullableCurrency of the order
reconciliation_atstring · date-timenullableReconciliation time of the order
