Skip to main content
GET
/
v1
/
businesses
/
{businessId}
/
invoices
/
ar-aging
/
customer
/
{customerId}
Fetch AR aging detail for a customer
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/invoices/ar-aging/customer/{customerId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "type": "AR_Aging_Customer_Detail",
    "as_of_date": "2023-11-07T05:31:56Z",
    "customer": {
      "type": "CustomerData",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "external_id": "31415926535",
      "individual_name": "<string>",
      "company_name": "<string>",
      "email": "<string>",
      "mobile_phone": "<string>",
      "office_phone": "<string>",
      "address_string": "<string>",
      "memo": "<string>",
      "status": "ACTIVE",
      "transaction_tags": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "key": "ExampleTagKey",
          "value": "ExampleTagValue",
          "dimension_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dimension_display_name": "<string>",
          "value_display_name": "<string>",
          "archived_at": "2023-11-07T05:31:56Z"
        }
      ]
    },
    "buckets": [
      {
        "start_day_number": 123,
        "end_day_number": 123,
        "outstanding_value": 123
      }
    ],
    "current": 123,
    "days_1_30": 123,
    "days_31_60": 123,
    "days_61_90": 123,
    "days_91_over": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json.

Path Parameters

businessId
string<uuid>
required

The UUID of the business to fetch the AR aging detail for.

customerId
string<uuid>
required

The UUID of the customer to fetch AR aging detail for.

Response

AR aging customer detail retrieved successfully.

data
object
required

Detailed AR aging information for a specific customer.