» Working with Users/Customers

Working with Users/Customers

In the context of WebCommander, a “customer” refers to an individual who purchases goods or services from the platform. This section explains how you can interact with customer data using webhooks and APIs specifically designed for customer-related operations. Below is a list of customer-related operations that you can perform using WebCommander’s APIs:

Get Customer Data

To retrieve customer data using a token, you can use the following API endpoint.

curl --location 'http://yourapp.com/external/app/access/customer-details-with-token?token=0e35317d7dfcabad2a4b9e06d8df168c' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb'

Request Details

  • Request URL: http://yourapp.com/external/app/access/customer-details-with-token?token=0e35317d7dfcabad2a4b9e06d8df168c
  • Request Type: GET

Get Customer List

Retrieve a comprehensive list of all customers or users. An example is provided below:

curl --location 'http://yourapp.com/external/app/access/customers?max=-1&offset=0&type=active' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
--header 'uuid: F8A3-A88E-C6EF-B1CB'

Request Details

Request URL: http://yourapp.com/external/app/access/customers

Request type: GET

Request Parameters

"max": "-1", 
"offset": "0", 
"type": "active"

Response

{
    "customers": [
        {
            "countReferralCodeUsed": 0,
            "cloudConfig": null,
            "lastName": "Islam",
            "parent": null,
            "backgroundImage": null,
            "companyName": null,
            "billingAddresses": [
                {
                    "lastName": "Doe",
                    "country": 236,
                    "city": "Dhaka",
                    "companyName": null,
                    "mobile": null,
                    "firstName": "John",
                    "phone": null,
                    "addressLine1": "Dhaka",
                    "addressLine2": "",
                    "postCode": null,
                    "id": 4191,
                    "state": 10,
                    "fax": null,
                    "email": "john@0040gmail.com"
                }
            ],
            "source": null,
            "shippingProfile": null,
            "activeBillingAddress": {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4191,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            },
            "abnBranch": null,
            "referralCode": null,
            "id": 310,
            "howDoYouKnow": null,
            "activeShippingAddress": {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4192,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            },
            "address": {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4190,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            },
            "sex": "Male",
            "isCompany": false,
            "userName": "john@40gmail.com",
            "abn": null,
            "version": null,
            "storeCredit": 0.0,
            "firstName": "John",
            "baseUrl": "\u002f",
            "usedReferralCode": null,
            "displayId": 102,
            "defaultTaxCode": null,
            "status": "A",
            "shippingAddresses": [
                {
                    "lastName": "Doe",
                    "country": 236,
                    "city": "Dhaka",
                    "companyName": null,
                    "mobile": null,
                    "firstName": "John",
                    "phone": null,
                    "addressLine1": "Dhaka",
                    "addressLine2": "",
                    "postCode": null,
                    "id": 4192,
                    "state": 10,
                    "fax": null,
                    "email": "johndoe0040gmail.com"
                }
            ]
        }
    ]
}

Create a Customer

Responsible for customer creation. An example is provided below:

curl --location 'http://yourapp.com/external/app/access/customer-create' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "John",
    "lastName": "Doe",
    "password":"123213",
    "abnBranch": null,
    "source": "",
    "country": 236,
    "city": "Dhaka",
    "companyName": null,
    "mobile": null,
    "phone": null,
    "addressLine1": "Dhaka",
    "addressLine2": "",
    "postCode": null,
    "state": 10,
    "fax": null,
    "email": "john@0040gmail.com",
    "sex": "Male",
    "isCompany": false,
    "userName": "john@0040gmail.com",
    "abn": null
}'

Request Details

  • Request URL: http://yourapp.com/external/app/access/customer-create
  • Request Type: POST

Request Parameters

{
    "firstName": "John",
    "lastName": "Doe",
    "password":"123213",
    "abnBranch": null,
    "source": "",
    "country": 236,
    "city": "Dhaka",
    "companyName": null,
    "mobile": null,
    "phone": null,
    "addressLine1": "Dhaka",
    "addressLine2": "",
    "postCode": null,
    "state": 10,
    "fax": null,
    "email": "john@0040gmail.com",
    "sex": "Male",
    "isCompany": false,
    "userName": "john@0040gmail.com",
    "abn": null
}

Response

{
    "customers": {
        "countReferralCodeUsed": 0,
        "cloudConfig": null,
        "lastName": "Doe",
        "parent": null,
        "backgroundImage": null,
        "companyName": null,
        "billingAddresses": [
            {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4191,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            }
        ],
        "source": null,
        "shippingProfile": null,
        "activeBillingAddress": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4191,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "abnBranch": null,
        "referralCode": null,
        "id": 310,
        "howDoYouKnow": null,
        "activeShippingAddress": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4192,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "address": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4190,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "sex": "Male",
        "isCompany": false,
        "userName": "john@0040gmail.com",
        "abn": null,
        "version": null,
        "storeCredit": 0.0,
        "firstName": "John",
        "baseUrl": "\u002f",
        "usedReferralCode": null,
        "displayId": 102,
        "defaultTaxCode": null,
        "status": "A",
        "shippingAddresses": [
            {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4192,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            }
        ]
    }
}

Customer Delete

Responsible for customer deletion. An example is provided below:

curl --location --request DELETE 'http://yourapp.com/external/app/access/customer-delete' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
--header 'Content-Type: application/json' \
--data '{"customerId": 229956}'

Request Details

  • Request URL: http://yourapp.com/external/app/access/customer-delete
  • Request type: DELETE

Request Parameter

"email":"abc@gmail.com"

or

"customerId": 123

Customer Update

Responsible for customer data updates. An example is provided below:

curl --location 'http://yourapp.com/external/app/access/customer-update' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "John",
    "lastName": "Doe",
    "status": "active",
    "country": 236,
    "city": "Dhaka",
    "mobile": null,
    "phone": null,
    "addressLine1": "Dhaka",
    "addressLine2": "",
    "postCode": null,
    "state": 10,
    "fax": null,
    "email": "john@0040gmail.com",
    "sex": "Male"
}'

Request Details

  • Request URL: http://yourapp.com/external/app/access/customer-update
  • Request type: POST

Request Parameter

{
    "firstName": "John",
    "lastName": "Doe",
    "status": "active",
    "country": 236,
    "city": "Dhaka",
    "mobile": null,
    "phone": null,
    "addressLine1": "Dhaka",
    "addressLine2": "",
    "postCode": null,
    "state": 10,
    "fax": null,
    "email": "john@0040gmail.com",
    "sex": "Male"
}

Response

{
    "customers": {
        "countReferralCodeUsed": 0,
        "cloudConfig": null,
        "lastName": "Doe",
        "parent": null,
        "backgroundImage": null,
        "companyName": null,
        "billingAddresses": [
            {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4191,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            }
        ],
        "source": null,
        "shippingProfile": null,
        "activeBillingAddress": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4191,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "abnBranch": null,
        "referralCode": null,
        "id": 310,
        "howDoYouKnow": null,
        "activeShippingAddress": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4192,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "address": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4190,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "sex": "Male",
        "isCompany": false,
        "userName": "john@0040gmail.com",
        "abn": null,
        "version": null,
        "storeCredit": 0.0,
        "firstName": "John",
        "baseUrl": "\u002f",
        "usedReferralCode": null,
        "displayId": 102,
        "defaultTaxCode": null,
        "status": "A",
        "shippingAddresses": [
            {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4192,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            }
        ]
    }
}

Customer Payments

List of payments initiated by a customer. An example is provided below:

curl --location 'http://yourapp.com/external/app/access/customer-payments?customerId=2299563456' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb'

Request Details

Request URL: http://yourapp.com/external/app/access/customer-payments

Request type: GET

Request Parameter

"email": "john@gmail.com"

or

"customerId": "667785555"

Response

{
    "payments": [
        [
            {
                "surcharge": 0.0,
                "amount": 110.0,
                "trackInfo": null,
                "payingDate": "2023-03-21T11:09:25",
                "gatewayName": null,
                "created": "2023-03-21T11:09:25",
                "version": null,
                "payerInfo": null,
                "gatewayCode": "CRD",
                "gatewayResponse": null,
                "id": 1586,
                "updated": "2023-03-21T11:09:25",
                "refundId": null,
                "order": {
                    "orderComment": [],
                    "payments": [
                        1586,
                        1591
                    ],
                    "lastReminderTime": "2023-03-21T11:09:24",
                    "totalSurcharge": 0.0,
                    "orderStatus": "pending",
                    "orderChannel": null,
                    "billing": 3866,
                    "shippingStatus": "awaiting",
                    "shippingTax": 0.0,
                    "shipping": 3871,
                    "discountOnOrder": 0.0,
                    "additionalInfo": null,
                    "customerId": 296,
                    "handlingCost": 0.0,
                    "discountOnShippingTax": 0.0,
                    "id": 1446,
                    "paymentStatus": "paid",
                    "handlingTax": 0.0,
                    "orderNo": 457,
                    "shippingCost": 0.0,
                    "discountOnOrderTotalTax": 0.0,
                    "ipAddress": "127.0.0.1",
                    "deliveryType": "shipping",
                    "shipments": [],
                    "customerName": "Dimitrius Sideris",
                    "reminderCount": 0,
                    "createdBy": null,
                    "actualTax": 10.0,
                    "discountOnShipping": 0.0,
                    "items": [
                        2611,
                        2616,
                        2621
                    ]
                },
                "status": "awaiting"
            }
        ]
    ]
}

Get Single Customer

Retrieve the details of a single customer based on their ID or email. Here is an example:

curl --location 'http://yourapp.com/external/app/access/customer?customerId=667785555' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb'

Request Details

  • Request URL: http://yourapp.com/external/app/access/customer
  • Request type: GET

Request Parameter

"email": "john@gmail.com"

or

"customerId": "667785555"

Response

{
    "customers": {
        "countReferralCodeUsed": 0,
        "cloudConfig": null,
        "lastName": "Doe",
        "parent": null,
        "backgroundImage": null,
        "companyName": null,
        "billingAddresses": [
            {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4191,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            }
        ],
        "source": null,
        "shippingProfile": null,
        "activeBillingAddress": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4191,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "abnBranch": null,
        "referralCode": null,
        "id": 310,
        "howDoYouKnow": null,
        "activeShippingAddress": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4192,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "address": {
            "lastName": "Doe",
            "country": 236,
            "city": "Dhaka",
            "companyName": null,
            "mobile": null,
            "firstName": "John",
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "",
            "postCode": null,
            "id": 4190,
            "state": 10,
            "fax": null,
            "email": "john@0040gmail.com"
        },
        "sex": "Male",
        "isCompany": false,
        "userName": "john@0040gmail.com",
        "abn": null,
        "version": null,
        "storeCredit": 0.0,
        "firstName": "John",
        "baseUrl": "\u002f",
        "usedReferralCode": null,
        "displayId": 102,
        "defaultTaxCode": null,
        "status": "A",
        "shippingAddresses": [
            {
                "lastName": "Doe",
                "country": 236,
                "city": "Dhaka",
                "companyName": null,
                "mobile": null,
                "firstName": "John",
                "phone": null,
                "addressLine1": "Dhaka",
                "addressLine2": "",
                "postCode": null,
                "id": 4192,
                "state": 10,
                "fax": null,
                "email": "john@0040gmail.com"
            }
        ]
    }
}

Customer Orders

Retrieve the list of all orders placed by a customer. Here is an example:

curl --location 'http://yourapp.com/external/app/access/customer-orders?customerId=667785555' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb'

Request Details

  • Request URL: http://yourapp.com/external/app/access/customer-orders
  • Request type: GET

Request Parameter

"email": "john@gmail.com"

or

"customerId": "667785555"

Response

{
    "orders": [
        {
            "orderComment": [],
            "payments": [
                {
                    "surcharge": 0.0,
                    "amount": 110.0,
                    "trackInfo": null,
                    "payerInfo": null,
                    "gatewayCode": "CRD",
                    "payingDate": "2023-03-21T11:09:25",
                    "gatewayName": null,
                    "gatewayResponse": null,
                    "id": 1586,
                    "refundId": null,
                    "order": 1446,
                    "status": "awaiting"
                },
                {
                    "surcharge": 0.0,
                    "amount": 110.0,
                    "trackInfo": "684084",
                    "payerInfo": "Customer#92",
                    "gatewayCode": "CRD",
                    "payingDate": "2023-03-21T11:10:47",
                    "gatewayName": "securePay",
                    "gatewayResponse": "Code 08 - Approved",
                    "id": 1591,
                    "refundId": "ca644b7c-00457-559",
                    "order": 1446,
                    "status": "success"
                }
            ],
            "lastReminderTime": "2023-03-21T11: 09: 24",
            "totalSurcharge": 0.0,
            "orderStatus": "pending",
            "orderChannel": null,
            "billing": {
                "lastName": "Tom",
                "country": 12,
                "city": "Wheelers Hill",
                "companyName": null,
                "mobile": "123456789",
                "firstName": "Jarry",
                "phone": "12345",
                "addressLine1": "Address Line 1",
                "addressLine2": null,
                "postCode": "3150",
                "id": 3866,
                "state": 72,
                "fax": "fax",
                "email": "3866\u0040noemail.loc"
            },
            "shippingStatus": "awaiting",
            "shippingTax": 0.0,
            "shipping": {
                "lastName": "Tom",
                "country": 12,
                "city": "Wheelers Hill",
                "companyName": null,
                "mobile": "123456789",
                "firstName": "Jarry",
                "phone": "12345",
                "addressLine1": "Address Line 1",
                "addressLine2": null,
                "postCode": "3150",
                "id": 3871,
                "state": 72,
                "fax": "fax",
                "email": "3871\u0040noemail.loc"
            },
            "discountOnOrder": 0.0,
            "additionalInfo": null,
            "customerId": 296,
            "handlingCost": 0.0,
            "discountOnShippingTax": 0.0,
            "id": 1446,
            "paymentStatus": "paid",
            "handlingTax": 0.0,
            "orderNo": 457,
            "shippingCost": 0.0,
            "discountOnOrderTotalTax": 0.0,
            "created": "2023-03-21T11: 09: 24",
            "ipAddress": "127.0.0.1",
            "deliveryType": "shipping",
            "version": null,
            "shipments": [],
            "customerName": "Dimitrius Sideris",
            "reminderCount": 0,
            "createdBy": null,
            "actualTax": 10.0,
            "discountOnShipping": 0.0,
            "updated": "2023-03-21T11: 11: 31",
            "items": [
                {
                    "actualDiscount": 0.0,
                    "quantity": 1,
                    "productId": 38,
                    "productVariationId": 305,
                    "actualPrice": 45.0,
                    "shippingClassName": null,
                    "taxDiscount": 0.0,
                    "isTaxable": true,
                    "discount": 0.0,
                    "tax": 4.09,
                    "storeId": null,
                    "shippingClassId": null,
                    "productName": "ON FIELD SHORTS - AWAY",
                    "price": 40.91,
                    "variations": [
                        "Size: M - Adult Medium"
                    ],
                    "id": 2611,
                    "productType": "product",
                    "isShippable": true,
                    "order": 1446
                },
                {
                    "actualDiscount": 0.0,
                    "quantity": 1,
                    "productId": 32,
                    "productVariationId": 308,
                    "actualPrice": 45.0,
                    "shippingClassName": null,
                    "taxDiscount": 0.0,
                    "isTaxable": true,
                    "discount": 0.0,
                    "tax": 4.09,
                    "storeId": null,
                    "shippingClassId": null,
                    "productName": "ON FIELD SHORTS - HOME",
                    "price": 40.91,
                    "variations": [
                        "Size: M - Adult Medium"
                    ],
                    "id": 2616,
                    "productType": "product",
                    "isShippable": true,
                    "order": 1446
                },
                {
                    "actualDiscount": 0.0,
                    "quantity": 1,
                    "productId": 101,
                    "productVariationId": 487,
                    "actualPrice": 20.0,
                    "shippingClassName": null,
                    "taxDiscount": 0.0,
                    "isTaxable": true,
                    "discount": 0.0,
                    "tax": 1.82,
                    "storeId": null,
                    "shippingClassId": null,
                    "productName": "ON FIELD SOCKS - TRADITIONAL LENGTH",
                    "price": 18.18,
                    "variations": [
                        "Size: 8 - 11"
                    ],
                    "id": 2621,
                    "productType": "product",
                    "isShippable": true,
                    "order": 1446
                }
            ]
        }
    ]

Update Customer Billing Address

Responsible for updating the billing addresses of a customer. Here is an example:

curl --location 'http://yourapp.com/external/app/access/update-customer-billing-address' \
--header 'uuid: F8A3-A88E-C6EF-B1CB' \
--header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "John",
    "lastName": "Doe",
    "status": "active",
    "country": 236,
    "city": "Dhaka",
    "mobile": null,
    "phone": null,
    "addressLine1": "Dhaka",
    "addressLine2": "AU",
    "postCode": null,
    "state": 10,
    "fax": null,
    "email": "name@gmail.com"
}'

Request Details

  • Request URL: http://yourapp.com/external/app/access/update-customer-billing-address
  • Request type: POS

Request Parameter

{
    "firstName": "John",
    "lastName": "Doe",
    "status": "active",
    "country": 236,
    "city": "Dhaka",
    "mobile": null,
    "phone": null,
    "addressLine1": "Dhaka",
    "addressLine2": "AU",
    "postCode": null,
    "state": 10,
    "fax": null,
    "email": "name@gmail.com"
}

Response

{
    "address": {
        "firstName": "John",
        "lastName": "Doe",
        "status": "active",
        "country": 236,
        "city": "Dhaka",
        "mobile": null,
        "phone": null,
        "addressLine1": "Dhaka",
        "addressLine2": "AU",
        "postCode": null,
        "state": 10,
        "fax": null,
        "email": "name@gmail.com"
    }
}

Update Customer Shipping Address

    curl --location 'http://yourapp.com/external/app/access/update-customer-shipping-address' \
    --header 'uuid: F8A3-A88E-C6EF-B1CB' \
    --header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "firstName": "John",
        "lastName": "Doe",
        "status": "active",
        "country": 236,
        "city": "Dhaka",
        "mobile": null,
        "phone": null,
        "addressLine1": "Dhaka",
        "addressLine2": "AU",
        "postCode": null,
        "state": 10,
        "fax": null,
        "email": "name@gmail.com"
    }'

    Request Details

    • Request URL: http://yourapp.com/external/app/access/update-customer-shipping-address
    • Request type: POST

    Request Parameter

    {
        "firstName": "John",
        "lastName": "Doe",
        "status": "active",
        "country": 236,
        "city": "Dhaka",
        "mobile": null,
        "phone": null,
        "addressLine1": "Dhaka",
        "addressLine2": "AU",
        "postCode": null,
        "state": 10,
        "fax": null,
        "email": "name@gmail.com"
    }

    Response

    {
        "address": {
            "firstName": "John",
            "lastName": "Doe",
            "status": "active",
            "country": 236,
            "city": "Dhaka",
            "mobile": null,
            "phone": null,
            "addressLine1": "Dhaka",
            "addressLine2": "AU",
            "postCode": null,
            "state": 10,
            "fax": null,
            "email": "name@gmail.com"
        }
    }

    Update Customer Store Credit

    Responsible for updating a customer’s store credit. Here is an example:

    curl --location 'http://yourapp.com/external/app/access/update-customer-store-credit' \
    --header 'uuid: F8A3-A88E-C6EF-B1CB' \
    --header 'accessToken: 11b4ec017714ef095b8e115545467fcb' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "email": "name@gmail.com",
        "add": "true",
        "deltaAmount": 50,
        "adjustNote": "50 dollar added"
    }'

    Request Details

    • Request URL: http://yourapp.com/external/app/access/update-customer-store-credit
    • Request type: POST

    Request Parameter

    {
        "email": "name@gmail.com",
        "add": "true",
        "deltaAmount": 50,
        "adjustNote": "50 dollar added"
    }

    Response

    {
        "status": "true",
        "isMaxCreditExceed": "false",
        "storeCredit": 100
    }