Update Agent By Id
PUT
{{ecommercev2_url}}/agents/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{ecommercev2_url}}/agents/67f2a9cf0e19fcf20171516f' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"basicInformation": {
"fullName": {
"ar": "أحمد الحربي",
"en": "Ahmed Al Harbi"
},
"companyName": {
"ar": "مجموعة الصايغ",
"en": "Al Sayegh Group"
},
"status": "ACTIVE"
},
"businessInfo": {
"commercialRegistrationNumber": "123456789",
"taxIdentificationNumber": "987654321",
"phoneNumber": "+1 234 567 890",
"headOfficeAddress": "123 Main Street, New York, USA",
"officialEmail": "mohamedsaad@alsayeghgroup-kw.com",
"authorizedCountry": "USA",
"websiteLink": "https://www.globallogistics.com"
},
"financialInfo": {
"startDate": "2024-01-01T00:00:00Z",
"endDate": "2025-01-01T00:00:00Z",
"shippingProfitPercentage": 5.0,
"subscriptionProfitPercentage": 10.0
},
"attachments": [
{
"_id": "507f1f77bcf86cd799439012",
"path": "https://example.com/images/mens-accessories-2.jpg"
}
]
}'
Response Response Example
{}
Request
Path Params
id
string
required
Example:
67f2a9cf0e19fcf20171516f
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:46:41