Update Customer By Id
PUT
{{ecommercev2_url}}/customers/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{ecommercev2_url}}/customers/67f3f28821730752b897b13e' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"userId": "507f1f77bcf86cd799439011",
"basicInformation": {
"fullName": {
"en": "John Smith",
"ar": "جون سميث"
},
"ownerName": {
"en": "John Smith",
"ar": "جون سميث"
},
"companyName": {
"en": "Smith Trading Co.",
"ar": "شركة سميث للتجارة"
},
"service": "Customs Brokerage",
"customsLicenseNumber": "CB123456",
"businessType": "Trading",
"domain": "smith-trading.com"
},
"businessContactInfo": {
"commercialRegistrationNumber": "CR123456789",
"taxIdentificationNumber": "TIN987654321",
"mobileCountryCode": "+966",
"mobileNumber": "501234567",
"headOfficeAddress": "123 Business Street, Riyadh, Saudi Arabia",
"authorizedCountries": ["SA", "AE", "KW"],
"websiteLink": "https://www.smith-trading.com",
"email": "contact@smith-trading.com",
"password": "StrongPass123!"
},
"subscription": {
"plan": "premium",
"startsAt": "2024-03-20T00:00:00Z",
"endsAt": "2025-03-20T00:00:00Z",
"trialEndsAt": "2024-04-20T00:00:00Z",
"unlimitedDuration": false,
"trialPeriod": 30,
"subscriptionPeriod": 365,
"subscriptionAmount": 12000,
"discountType": "percentage",
"discountAmount": 10.5
},
"bankDetails": {
"bankName": "Saudi National Bank",
"accountNumber": "1234567890",
"accountHolderName": "Smith Trading Co.",
"iban": "SA0380000000608010167519",
"swiftCode": "SNBASAJE"
},
"notificationMethods": {
"email": true,
"sms": true,
"whatsapp": true,
"dashboard": true
},
"accountInformation": {
"deactivated": false,
"expired": false,
"suspended": false,
"live": true
},
"attachments": [
{
"_id": "507f1f77bcf86cd799439012",
"path": "https://storage.example.com/documents/commercial-registration.pdf"
}
],
"invoices": ["507f1f77bcf86cd799439012"],
"payments": ["507f1f77bcf86cd799439013"],
"tickets": ["507f1f77bcf86cd799439014"]
}'
Response Response Example
{}
Request
Path Params
id
string
required
Example:
67f3f28821730752b897b13e
Header Params
x-access-token
string
required
Example:
{{admin-token}}
x-client
string
required
Example:
{{client}}
accept-language
string
required
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-04-13 16:48:11