Skip to main content
GET
/
v1
/
counterparties
List counterparties
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/counterparties', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "counterparties": [
      {
        "id": "<string>",
        "orgId": "<string>",
        "legalName": "<string>",
        "displayName": "<string>",
        "jurisdiction": "<string>",
        "taxId": "<string>",
        "defaultCurrency": "<string>",
        "taxWithholdingRate": "<string>",
        "ledgerAccountCode": "<string>",
        "tags": [
          "<string>"
        ],
        "active": true,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "total": 123
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Response

All counterparties.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"