Create order by Publisher

1. Create Lead Via GET

Base URL (develop enviroment) : https://service-be-dev.mp.directsale.vn/api/v1

ENDPOINT: /lead/store

METHOD: GET

PARAMETERS:

campaign_id: required,
ad_space_code: required,
name: required,
phone: required,
token: required,
utm_source,
utm_medium,
utm_content,
utm_campaign,
sub, sub1, sub2, sub3, sub4,
products[]

token = md5(username)

products[]:

   $id:1$quantity:3$price:10000$sku:001$category_name:cate_01$name:product_02$product_id:test213232

product_id in products[] with CRM pushsale required

BODY: NONE

RESPONSE:

1.Status: Error

{
    "status": "fail",
    "data": {
        "name": [
            "The name field is required."
        ]
    }
}

1.Status: Success

{
    "status": "success",
    "data": {
        "ipAddress": "118.70.171.63",
        "userAgent": "PostmanRuntime/7.19.0",
        "campaignId": "51",
        "adSpaceCode": "ADS000000024",
        "utmSource": "api",
        "utmMedium": "auto",
        "utmContent": "coupon",
        "sub": "001",
        "sub1": "002",
        "sub2": "003",
        "sub3": "004",
        "sub4": "005",
        "utmCampaign": "Tuplip",
        "clickId": "32e49cda18134a459eef6586cb50eb70"
    }
}

Last updated

Was this helpful?