POST call, passing a JSON body as specified below.missing_parametercustomer_not_found{
"barcode": "9999003622498",
"optinWallet": "Y",
"walletId": "captainwallet"
}| Field | Description | Type | Mandatory |
|---|---|---|---|
| barcode | Main address | String | ✓ |
| optinWallet | Y/N if opt-in is enable | String | ✓ |
| walletId | The wallet id | String |
curl --location --request POST '/api?cmd=setCustomerOptIn_v1&applicationId=MOBILE_SHOP&appId=MOBILE_SHOP' \
--header 'applicationId: {{APPLICATION_ID}}' \
--header 'appId: {{APPLICATION_ID}}' \
--header 'namespace: {{NAMESPACE}}' \
--header 'languageId: {{LANGUAGE}}' \
--header 'username: {{USERNAME}}' \
--header 'password: {{PASSWORD}}' \
--header 'companyId: {{COMPANY_ID}}' \
--header 'siteId: {{SITE_ID}}' \
--header 'loadRoles: Y' \
--header 'Content-Type: text/plain' \
--data-raw '{
"barcode": "9999003622498",
"optinWallet": "Y",
"walletId": "captainwallet"
}'{
"success": true
}