Trace Connect APIs
- Introduction
- Authentication using JWT
- OAuth 2.0
- Basic APIs
- Advanced APIs
- Accounts
- Catalogs
- Forms
- Supply Chain
- Product Transactions
- Payment Transactions
Supply Chain
Update Company Details Endpoint
Update Company Details endpoint allows you to update information about a specific company within the supply chain by making a PATCH request. Provide the hash ID of the company in the endpoint URL and include the fields to be updated in the request body.
PATCH
/
supply-chains
/
companies
/
{hashid}
/
Copy
curl --request PATCH \
--url http://localhost:3000/connect/v1/supply-chains/companies/{hashid}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"currency": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"description": "<string>",
"house_name": "<string>",
"street": "<string>",
"city": "<string>",
"sub_province": "<string>",
"province": "<string>",
"latitude": 123,
"longitude": 123,
"zipcode": "<string>",
"country": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"name": "<string>",
"buy_enabled": true,
"sell_enabled": true,
"quality_correction": true,
"allow_multiple_login": true,
"creator": "<string>",
"updater": "<string>",
"buyer": "<string>",
"entity_card": "<string>"
}'
Copy
{
"id": "<string>",
"currency": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"image": "<string>",
"description": "<string>",
"house_name": "<string>",
"street": "<string>",
"city": "<string>",
"sub_province": "<string>",
"province": "<string>",
"latitude": 123,
"longitude": 123,
"zipcode": "<string>",
"country": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"name": "<string>",
"buy_enabled": true,
"sell_enabled": true,
"quality_correction": true,
"allow_multiple_login": true,
"creator": "<string>",
"updater": "<string>",
"buyer": "<string>",
"entity_card": "<string>",
"members": [
"<string>"
],
"products": [
"<string>"
]
}
Authorizations
Path Parameters
Body
application/json
Response
200 - application/json
The response is of type object
.
Copy
curl --request PATCH \
--url http://localhost:3000/connect/v1/supply-chains/companies/{hashid}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"currency": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"description": "<string>",
"house_name": "<string>",
"street": "<string>",
"city": "<string>",
"sub_province": "<string>",
"province": "<string>",
"latitude": 123,
"longitude": 123,
"zipcode": "<string>",
"country": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"name": "<string>",
"buy_enabled": true,
"sell_enabled": true,
"quality_correction": true,
"allow_multiple_login": true,
"creator": "<string>",
"updater": "<string>",
"buyer": "<string>",
"entity_card": "<string>"
}'
Copy
{
"id": "<string>",
"currency": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"image": "<string>",
"description": "<string>",
"house_name": "<string>",
"street": "<string>",
"city": "<string>",
"sub_province": "<string>",
"province": "<string>",
"latitude": 123,
"longitude": 123,
"zipcode": "<string>",
"country": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"name": "<string>",
"buy_enabled": true,
"sell_enabled": true,
"quality_correction": true,
"allow_multiple_login": true,
"creator": "<string>",
"updater": "<string>",
"buyer": "<string>",
"entity_card": "<string>",
"members": [
"<string>"
],
"products": [
"<string>"
]
}
Assistant
Responses are generated using AI and may contain mistakes.