🔌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 key

  • TRACE-ID: TraceId is used to block spam requests in the current 5 seconds per traceId. Recommend value format: {order_id}_{order_status}

Normalize transaction from Omni transactions.

post

Receive Omni transactions.

Authorizations
X-API-KEYstringRequired

API owner will provide for each service an API key

TRACE-IDstringRequired

TraceId is used to block spam request in the current 5 second per traceId. Recommend value: {order_id}_{order_status}

Body
merchantIdstringOptional

Company ID on CDP (CDP provide)

Example: soibien
merchantNamestringOptional

Company name on CDP (CDP provide)

Example: Sói Biển
senderEmailstringOptional

Customer's email

Example: nguyenvan.a@gmail.com
senderPhoneNumberstringOptional

Customer's phone

Example: 943999999
senderFullNamestringOptional

Customer's fullname

Example: Nguyễn Văn A
senderAccountIdstringOptional

Customer's id

Example: SB241408
shopIdstringOptional

ID of shop/store where the order was created

Example: SB01
shopNamestringOptional

Name of shop/store where the order was created

Example: SoiBien Hoang Cau
shopLocationIdstringOptional

The location ward id of the store where the order was created

Example: 10114
shopLocationNamestringOptional

The location address of the store where the order was created

Example: Phường Thành Công - Quận Ba Đình - Thành phố Hà Nội
terminalIdstringOptional

ID of terminal where the order was created

Example: Soibien_North
terminalNamestringOptional

Name of terminal where the order was created

Example: Sói Biển Miền Bắc
paymentDateintegerOptional

The order created at this timestamp

Example: 1628490676000
paymentTotalAmountintegerOptional

total amount of order, not included the discount amount

Example: 150000
paymentRealAmountintegerOptional

total amount of order, included the discount amount. So paymentRealAmount =< paymentTotalAmount

Example: 140000
paymentDiscountAmountintegerOptional

discount amount of order

Example: 10000
paymentChannelMethodstringOptional

The method of payment for the order. E.g. CASH, BANK_TRANSFER, COD, MOMO, COD, CARD...

Example: CASH
txnRefstringOptional

Id of the order

Example: TD000034
orderCouponCodesstring[]Optional

List coupon codes that applied for the order

Example: ["PROMO20","FREESHIP"]
statusstringOptional

Order Status. E.g. PENDING, CANCELLED, DELIVERED, RETURNED...

Example: DELIVERED
createdAtintegerOptionalExample: 1628490676000
updatedAtintegerOptionalExample: 1628490676000
Responses
200

OK

application/json
post
/v1/transaction/normalize
200

OK

Location code

Last updated

Was this helpful?