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
Add Company Member Endpoint
Add Company Member endpoint allows you to add a new member to a specific company within the supply chain by making a POST request. Provide the required information in the request body, including user details and the type of membership.
POST
/
supply-chains
/
company-members
/
Copy
curl --request POST \
--url http://localhost:3000/connect/v1/supply-chains/company-members/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"user": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"updated_email": "jsmith@example.com",
"default_entity": "<string>",
"accepted_policy": "<string>",
"language": "<string>"
},
"type": "SUPER_ADMIN",
"is_active": true,
"creator": "<string>",
"updater": "<string>",
"company": "<string>"
}'
Copy
{
"id": "<string>",
"user": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"image": "<string>",
"updated_email": "jsmith@example.com",
"managing_entitys": [
"<string>"
],
"default_entity": "<string>",
"accepted_policy": "<string>",
"policy_accepted": "<string>",
"current_policy": "<string>",
"language": "<string>"
},
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"type": "SUPER_ADMIN",
"is_active": true,
"creator": "<string>",
"updater": "<string>",
"company": "<string>"
}
Authorizations
Body
application/json
Response
201 - application/json
The response is of type object
.
Copy
curl --request POST \
--url http://localhost:3000/connect/v1/supply-chains/company-members/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"user": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"updated_email": "jsmith@example.com",
"default_entity": "<string>",
"accepted_policy": "<string>",
"language": "<string>"
},
"type": "SUPER_ADMIN",
"is_active": true,
"creator": "<string>",
"updater": "<string>",
"company": "<string>"
}'
Copy
{
"id": "<string>",
"user": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"image": "<string>",
"updated_email": "jsmith@example.com",
"managing_entitys": [
"<string>"
],
"default_entity": "<string>",
"accepted_policy": "<string>",
"policy_accepted": "<string>",
"current_policy": "<string>",
"language": "<string>"
},
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"type": "SUPER_ADMIN",
"is_active": true,
"creator": "<string>",
"updater": "<string>",
"company": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.