Invoicebatches
Filter the results. See ODATA documentation for more information
name eq 'Adam' and age gt 20
Sorting the results. See ODATA specification for more information
accountNumber Desc
Apply a separate modified After filter. See 'ModifiedBefore' filter for further details.
07/01/2025 00:00:00
Apply a separate filter to only get records that has been modified Before the specified date time.
07/01/2025 00:00:00
Page Size
20
Page Number
1
GET /InvoiceBatches/{batchIdentifier}/BatchLog HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"pageNumber": 1,
"pageSize": 1,
"totalPages": 1,
"totalCount": 1,
"nextPage": "https://example.com",
"previousPage": "https://example.com",
"firstPage": "https://example.com",
"lastPage": "https://example.com",
"data": {
"entityId": "123e4567-e89b-12d3-a456-426614174000",
"errorMessage": "text",
"reference": "text",
"entityName": "text",
"created": "2025-07-04T00:51:52.982Z",
"modified": "2025-07-04T00:51:52.982Z"
}
}
Accepted references job id, batch id, batch number or event id
GET /InvoiceBatches/BatchJobStatus/{batchReference}/Generated HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"resultBody": {
"batchId": "123e4567-e89b-12d3-a456-426614174000",
"batchNumber": "text",
"eventId": "text",
"message": "text"
},
"resultStatus": "Pending",
"statusMessage": "text"
}
Accepted references job id, batch id, batch number or event id
GET /InvoiceBatches/BatchJobStatus/{batchReference}/Posted HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"resultBody": [
{
"batchId": "123e4567-e89b-12d3-a456-426614174000",
"batchNumber": "text",
"eventId": "text",
"message": "text"
}
],
"resultStatus": "Pending",
"statusMessage": "text"
}
Generate invoice batch by running generate invoice batch job. Status on jobs can obtained by batch jobs status endpoints or found in settings > scheduled jobs in the UI.
POST /InvoiceBatches HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 563
{
"invoiceDate": "2025-07-04T00:51:52.982Z",
"customizedTargetDates": {
"oneOff": "2025-07-04T00:51:52.982Z",
"recurringInAdvance": "2025-07-04T00:51:52.982Z",
"recurringInArrears": "2025-07-04T00:51:52.982Z",
"usage": "2025-07-04T00:51:52.982Z",
"measured": "2025-07-04T00:51:52.982Z"
},
"targetDate": "2025-07-04T00:51:52.982Z",
"invoiceAllAccounts": true,
"invoiceAllBatchGroups": true,
"accounts": [
"123e4567-e89b-12d3-a456-426614174000"
],
"invoiceBatchGroups": [
"123e4567-e89b-12d3-a456-426614174000"
],
"minimumInvoiceAmount": 1,
"ensureWebhooksAreEnabled": true,
"jobDescription": "text"
}
{
"batchNumber": "text",
"jobId": "123e4567-e89b-12d3-a456-426614174000",
"resultStatus": "Pending",
"webhooksTriggeredWhenCompleted": true,
"webhookEvent": "text",
"webhooks": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"description": "text"
}
],
"eventId": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"message": "text"
}
Filter the results. See ODATA documentation for more information
name eq 'Adam' and age gt 20
Sorting the results. See ODATA specification for more information
accountNumber Desc
Apply a separate modified After filter. See 'ModifiedBefore' filter for further details.
07/01/2025 00:00:00
Apply a separate filter to only get records that has been modified Before the specified date time.
07/01/2025 00:00:00
Page Size
20
Page Number
1
GET /InvoiceBatches HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"pageNumber": 1,
"pageSize": 1,
"totalPages": 1,
"totalCount": 1,
"nextPage": "https://example.com",
"previousPage": "https://example.com",
"firstPage": "https://example.com",
"lastPage": "https://example.com",
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"batchNumber": "text",
"targetDate": "2025-07-04T00:51:52.982Z",
"invoiceDate": "2025-07-04T00:51:52.982Z",
"batchGroups": [
"text"
],
"invoices": [
{
"invoiceNumber": "text",
"status": "Draft",
"invoiceDate": "2025-07-04T00:51:52.982Z",
"currency": "text",
"subtotal": 1,
"totalAmount": 1,
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalERPId": "text",
"externalCRMId": "text"
}
],
"batchLog": [
{
"entityId": "123e4567-e89b-12d3-a456-426614174000",
"errorMessage": "text",
"reference": "text",
"entityName": "text",
"created": "2025-07-04T00:51:52.982Z",
"modified": "2025-07-04T00:51:52.982Z"
}
],
"created": "2025-07-04T00:51:52.982Z",
"modified": "2025-07-04T00:51:52.982Z"
}
]
}
Post invoice batch by running post invoice batch job. Status on jobs can obtained by batch jobs status endpoints or found in settings > scheduled jobs in the UI
POST /InvoiceBatches/{id}/Post HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"ensureWebhooksAreEnabled": true,
"jobDescription": "text"
}
{
"batchNumber": "text",
"jobId": "123e4567-e89b-12d3-a456-426614174000",
"resultStatus": "Pending",
"webhooksTriggeredWhenCompleted": true,
"webhookEvent": "text",
"webhooks": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"description": "text"
}
],
"eventId": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"message": "text"
}
GET /InvoiceBatches/{id} HTTP/1.1
Host: api.sandbox.younium.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"batchNumber": "text",
"targetDate": "2025-07-04T00:51:52.982Z",
"invoiceDate": "2025-07-04T00:51:52.982Z",
"batchGroups": [
"text"
],
"invoices": [
{
"invoiceNumber": "text",
"status": "Draft",
"invoiceDate": "2025-07-04T00:51:52.982Z",
"currency": "text",
"subtotal": 1,
"totalAmount": 1,
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalERPId": "text",
"externalCRMId": "text"
}
],
"batchLog": [
{
"entityId": "123e4567-e89b-12d3-a456-426614174000",
"errorMessage": "text",
"reference": "text",
"entityName": "text",
"created": "2025-07-04T00:51:52.982Z",
"modified": "2025-07-04T00:51:52.982Z"
}
],
"created": "2025-07-04T00:51:52.982Z",
"modified": "2025-07-04T00:51:52.982Z"
}
Last updated