Order API - Order Tracking

Order API Specifications - Order Tracking

This API is used for order data postback. Once the purchase is done and API gets called, ShopBack will receive the data and keep it in the system with a pending status for further validation.

📘

As a general rule for ShopBack APIs, all parameter values must be URL-encoded to prevent read errors.

GET URL: http://shopback.go2cloud.org/aff_lsr

Parameter NameParameter ValueParameter ExampleDescriptionFormatRequired
offer_id{order_offer_id}Fixed merchant id. Please obtain this value from your ShopBack representative.numericmandatory
adv_sub{ customer_facing_order_id }Customer-facing order idalphanumericmandatory
adv_sub2optional
adv_sub3optional
adv_sub4optional
adv_sub5optional
adv_unique1optional
adv_unique2optional
adv_unique3optional
adv_unique4optional
adv_unique5optional
transaction_id{ transaction_id }102b983f153f632c9a0a1469e27b55 (example only)transaction_id from a ShopBack redirect linkalphanumeric (30 digits)mandatory
amount{ order_total }See explanation belowmandatory
security_token{ security_token }070a632e2b574ca894d90610c7da97bc (example only)Static security token specific to each merchant. Please obtain this value from your ShopBack representative.alphanumeric (32 digits)mandatory

Example Order API

Merchant replaces the following fields with the actual values:

http://shopback.go2cloud.org/aff_lsr?
offer_id={order_offer_id}&
adv_sub={ customer_facing_order_id }&
transaction_id={ transaction_id }&
amount={ order_total }&
security_token={ security_token }

Order API Demonstration

Merchant replaces the following fields with the actual values:

  • Order 123
    • Order_total = RM100
    • Click_id = ABCD1234

API 1:

http://shopback.go2cloud.org/aff_lsr?

offer_id={order_offer_id}&adv_sub=order_123&transaction_id=ABCD1234&amount=100&security_token={ security_token }

Order API Response

Status Code - 200

StringDescription
sucess=true;The order has been created successfully by API call.
success=false;
err_msg=Invalid Trans. ID
Transaction_id is in the wrong format.
success=false;
err_msg=Request offer #1234 does not match session offer #2345.
This transaction_id wasn’t distributed by your offer.
success=false;
err_msg=Duplicate recorded with Trans. ID
This transaction_id has already expired.