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 onGet billing document breakdown
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.
Scopes
Any one of the scopes in a token type's row is enough. all:read and all:write work too.
| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage invoices (invoices) | View invoices (invoices:read) | Manage invoices (invoices:write) |
| Company-scoped access token (assertion) | Manage invoices (invoices) | View invoices (invoices:read) | Manage invoices (invoices:write) |
| Customer API token | Manage invoices (invoices) | View invoices (invoices:read) | Manage invoices (invoices:write) |
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesinvoices:read
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesinvoices:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or HTTP bearer
Path parameters
The billing document's ID
Query parameters
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
Information about a billing document breakdown
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
- info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2AuthorizationCode - info
the security scope
invoices:readwas added to the endpoint's security schemeOAuth2CompanyManagerAssertion - info
the security scope
all:writewas removed from the endpoint's security schemeOAuth2AuthorizationCode
1 more change in this revision
- info