Skip to content

Update collection agency

Request

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

The unique company identifier.

collectionAgencyIdstringrequired

The ID of the collection agency

Bodyapplication/jsonrequired
externalIdstring or null, [ 1 .. 200 ] characters

A lender's identifier for an object.

After the object is successfully created, a lender can use ID or externalId identifiers to fetch the object.

To fetch the object using externalId you need to add ext- to the URL.

Note: Don't add ext- to the identifier value. For example: if the external identifier is ABCDE, then pass externalId=ABCDE and NOT ext-ABCDE when creating the object.

contactEmailstring

The third party debt collection agency email address that the charged-off loan was assigned to.

contactPhonestring

The third party debt collection agency primary phone that the charged-off loan was assigned to. Should be provided in E.164 format.

legalNamestring

The third party debt collection agency name that the charged-off loan was assigned to.

mailingAddressobject(AddressBase)

The third party debt collection agency mailing address that the charged-off loan was assigned to.

isArchivedboolean

Set to true if the debt collection agency no longer active. Loans that were assigned to that agency will keep the reference, but new loans cannot be assigned.

PUT
/companies/{companyId}/collection-agencies/{collectionAgencyId}
curl -i -X PUT \
  'https://sandboxapi.peach.finance/api/companies/{companyId}/collection-agencies/{collectionAgencyId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "externalId": "string",
    "contactEmail": "string",
    "contactPhone": "string",
    "legalName": "string",
    "mailingAddress": {
      "POBox": "string",
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "country": "string",
      "countyOrRegion": "string",
      "postalCode": "string",
      "state": "strin"
    },
    "isArchived": true
  }'

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 } }