Skip to content

Get collection agency by ID

Request

Security
oauth2(Required scopes: collection.agency:read) or bearerAuth or apiKeyHeader
Path
companyIdstringrequired

The unique company identifier.

collectionAgencyIdstringrequired

The ID of the collection agency

GET
/companies/{companyId}/collection-agencies/{collectionAgencyId}
curl -i -X GET \
  'https://sandboxapi.peach.finance/api/companies/{companyId}/collection-agencies/{collectionAgencyId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Bodyapplication/json
messagestring

Description of the server action or error.

statusinteger

HTTP status code.

dataobject(CollectionAgency)
Response
{ "message": "string", "status": 0, "data": { "createdAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "updatedAt": "2019-08-24T14:15:22Z", "externalId": "string", "companyId": "string", "contactEmail": "string", "contactPhone": "string", "legalName": "string", "mailingAddress": { … }, "isArchived": true } }