Dispute Departments¶
Retrieving a Department by Code¶
Swagger Page¶
Permission¶
Dispute Configuration : READ
Example Request¶
curl -X GET 'https://arc-aegis.billtrust.com/dispute/v1/tenants/{tenantId}/departments/code/{departmentCode}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Billtrust-Api-Key: <API key value>'
Example Response¶
{
"departmentId": "{departmentId}",
"tenantId": "{tenantId}",
"code": "{departmentCode}",
"description": "Shipping",
"createUser": "{userId}",
"createDate": "2021-03-28T15:30:21.242Z",
"updateUser": "{userId}",
"updateDate": "2021-03-28T15:30:21.242Z"
}
Retrieving a List of Departments¶
Swagger Page¶
Permission¶
Dispute Configuration : READ
Example Request¶
curl -X GET 'https://arc-aegis.billtrust.com/dispute/v1/tenants/{tenantId}/departments' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Billtrust-Api-Key: <API key value>'
Example Response¶
[
{
"departmentId": "{departmentId}",
"tenantId": "{tenantId}",
"code": "SHIPDEPT",
"description": "Shipping",
"createUser": "{userId}",
"createDate": "2021-03-28T15:30:21.242Z",
"updateUser": "{userId}",
"updateDate": "2021-03-28T15:30:21.242Z"
},
...
]
Creating a Department¶
Swagger Page¶
Permission¶
Dispute Configuration : CREATE
Example Request¶
curl -X POST 'https://arc-aegis.billtrust.com/dispute/v1/tenants/{tenantId}/departments' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Billtrust-Api-Key: <API key value>' \
-d '{ "code": "SHIPDEPT", "description": "Shipping" }'
Example Response¶
{
"departmentId": "{departmentId}",
"tenantId": "{tenantId}",
"code": "SHIPDEPT",
"description": "Shipping",
"createUser": "{userId}",
"createDate": "2021-03-28T15:30:21.242Z",
"updateUser": "{userId}",
"updateDate": "2021-03-28T15:30:21.242Z"
}
Updating a Department¶
Swagger Page¶
Permission¶
Dispute Configuration : UPDATE
Example Request¶
curl -X PUT 'https://arc-aegis.billtrust.com/dispute/v1/tenants/{tenantId}/departments/{departmentId}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Billtrust-Api-Key: <API key value>' \
-d '{ "description": "Shipping Department" }'
Example Response¶
{
"departmentId": "{departmentId}",
"tenantId": "{tenantId}",
"code": "SHIPDEPT",
"description": "Shipping Department",
"createUser": "{userId}",
"createDate": "2021-03-28T15:30:21.242Z",
"updateUser": "{userId}",
"updateDate": "2021-03-30T12:12:00.000Z"
}
Deleting a Department by ID¶
Swagger Page¶
Permission¶
Dispute Configuration : DELETE
Example Request¶
curl -X DELETE 'https://arc-aegis.billtrust.com/dispute/v1/tenants/{tenantId}/departments/{departmentId}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Billtrust-Api-Key: <API key value>'
Deleting a Department by Code¶
Swagger Page¶
Permission¶
Dispute Configuration : DELETE
Example Request¶
curl -X DELETE 'https://arc-aegis.billtrust.com/dispute/v1/tenants/{tenantId}/departments/by-code/{departmentCode}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-Billtrust-Api-Key: <API key value>'