curl --request POST \
--url https://api.terminal49.com/v2/parties \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"attributes": {
"company_name": "COMPANY NAME"
}
}
}
'{
"data": {
"id": "ba4cb904-827f-4038-8e31-1e92b3356218",
"type": "party",
"attributes": {
"company_name": "COMPANY NAME"
}
},
"links": {
"self": "/v2/parties/ba4cb904-827f-4038-8e31-1e92b3356218"
}
}Creates a new party
curl --request POST \
--url https://api.terminal49.com/v2/parties \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"attributes": {
"company_name": "COMPANY NAME"
}
}
}
'{
"data": {
"id": "ba4cb904-827f-4038-8e31-1e92b3356218",
"type": "party",
"attributes": {
"company_name": "COMPANY NAME"
}
},
"links": {
"self": "/v2/parties/ba4cb904-827f-4038-8e31-1e92b3356218"
}
}Token YOUR_API_TOKEN
The APIs require authentication to be done using header-based API Key and Secret Authentication.
API key and secret are sent va the Authorization request header.
You send your API key and secret in the following way:
Authorization: Token YOUR_API_KEY
Party Created
Was this page helpful?