🔌Transaction API
This API Endpoint receive your order transaction.
Environment
Host
Test:
https://normalize-txns-service.stag.tekoapis.net
Production:
https://normalize-txns-service.tekoapis.com
Security
Header
X-API-KEY
: API owner will provide for each service an API keyTRACE-ID
: TraceId is used to block spam requests in the current 5 seconds per traceId. Recommend value format:{order_id}_{order_status}
Receive Omni transactions.
Company ID on CDP (CDP provide)
soibien
Company name on CDP (CDP provide)
Sói Biển
Customer's email
nguyenvan.a@gmail.com
Customer's phone
943999999
Customer's fullname
Nguyễn Văn A
Customer's id
SB241408
ID of shop/store where the order was created
SB01
Name of shop/store where the order was created
SoiBien Hoang Cau
The location ward id of the store where the order was created
10114
The location address of the store where the order was created
Phường Thành Công - Quận Ba Đình - Thành phố Hà Nội
ID of terminal where the order was created
Soibien_North
Name of terminal where the order was created
Sói Biển Miền Bắc
The order created at this timestamp
1628490676000
total amount of order, not included the discount amount
150000
total amount of order, included the discount amount. So paymentRealAmount =< paymentTotalAmount
140000
discount amount of order
10000
The method of payment for the order. E.g. CASH, BANK_TRANSFER, COD, MOMO, COD, CARD...
CASH
Id of the order
TD000034
List coupon codes that applied for the order
["PROMO20","FREESHIP"]
Order Status. E.g. PENDING, CANCELLED, DELIVERED, RETURNED...
DELIVERED
1628490676000
1628490676000
POST /v1/transaction/normalize HTTP/1.1
Host: normalize-txns-service.dev.tekoapis.net
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1317
{
"merchantId": "soibien",
"merchantName": "Sói Biển",
"senderEmail": "nguyenvan.a@gmail.com",
"senderPhoneNumber": "0948999999",
"senderFullName": "Nguyễn Văn A",
"senderAccountId": "SB241408",
"shopId": "SB01",
"shopName": "SoiBien Hoang Cau",
"shopLocationId": 10114,
"shopLocationName": "Phường Thành Công - Quận Ba Đình - Thành phố Hà Nội",
"terminalId": "Soibien_North",
"terminalName": "Sói Biển Miền Bắc",
"paymentDate": 1628490676000,
"paymentTotalAmount": 299000,
"paymentRealAmount": 259000,
"paymentDiscountAmount": 40000,
"paymentChannelMethod": "CASH",
"txnRef": "TD000034",
"orderCouponCodes": [
"PROMO20",
"FREESHIP"
],
"orderLineItems": [
{
"skuId": "SKU12384192",
"skuName": "Cải bắp Vietgap Đà Lạt 500g",
"quantity": "0.66",
"categoryId": "tuoisong01",
"categoryName": "Tươi sống 01",
"brandId": "112",
"brandName": "dalatfarm",
"itemPrice": 22000,
"itemTotalAmount": 14520,
"SellerId": 2
},
{
"skuId": "SKU12331279",
"skuName": "Sườn Thăn lợn Hòa Bình",
"quantity": "0.55",
"categoryId": "tuoisong03",
"categoryName": "Tươi sống 03",
"brandId": "144",
"brandName": "CP",
"itemPrice": 239000,
"itemTotalAmount": 131450,
"SellerId": 40
}
],
"paymentTransactions": [
{
"paymentMethod": "CASH",
"paymentAmount": 125970
},
{
"paymentMethod": "LOYALTY",
"paymentAmount": 20000
}
],
"status": "DELIVERED",
"createdAt": 1628490676000,
"updatedAt": 1628490676000
}
OK
{
"code": 0,
"message": "Success!",
"data": "text"
}
Location code
Last updated
Was this helpful?