Billing
Billing Documents

Get Billing Document Breakdown. Requires a token issued via the authorization_code grant (company_manager role) — not usable with a client_credentials (integration) token.

Changed on

Get billing document breakdown

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page. See Authorization for customers.

Scopes

CategoryRead only ScopeWrite only Scope (read access implicit)
Manage invoices (invoices)View invoices (invoices:read)Manage invoices (invoices:write)
get/v1/billing-documents/{billing_document_id}/breakdown

Request

  • Base URL: https://gateway.remote.com
  • URL: https://gateway.remote.com/v1/billing-documents/{billing_document_id}/breakdown
  • Auth: HTTP bearer and OAuth 2 (authorization code, authorization URL /auth/oauth2/authorize, token URL /auth/oauth2/token, scopes: https://gateway.remote.com/company.manage, invoices:read, invoices:write, invoices, all:write, all:read)

Path parameters

billing_document_idstring required

The billing document's ID

Query parameters

typestring

Filters the results by the type of the billing breakdown item. Matched exactly against the type field of the returned items, so unrecognised values yield an empty list. Card spend is reported as Card expenses, separately from payroll-reimbursed Expenses. Other Compensation is reported as Other compensation, separately from Base salary. Payslip benefits can be returned as Payslip benefits for existing breakdown items, or as Payslip Benefit Cash and Payslip Benefit Non-Cash for newly generated items.

Response

Success

Example response

{
  "data": {
    "billing_document_breakdown": [
      {
        "country_code": "PRT",
        "description": "Base Salary",
        "employment_id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
        "fx_rate": "0.9",
        "invoice_amount": 900000,
        "invoice_currency": "EUR",
        "invoice_number": "1234567890",
        "invoice_period": "2023-12",
        "source_amount": 1000000,
        "source_currency": "USD",
        "type": "Base Salary",
        "variance_from_invoice": "May vary from invoice by under USD 1.00 (or equivalent)",
        "variance_from_invoice_amount": 0
      }
    ]
  }
}

Changes

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status