Import
Manage Imports, which are collections of Invoices.
Show Import
GET
https://app.clubcollect.com/api/v2/imports/:id
Fetch an Import’s details.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Import ID, supplied by ClubCollect. |
Query Parameters
Name | Type | Description |
---|---|---|
api:key | string | Partner API Key (Deprecated) |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | ApiKey <api_key> |
Create Import
POST
https://app.clubcollect.com/api/v2/imports
Create a new, empty Import.
Query Parameters
Name | Type | Description |
---|---|---|
api:key | string | Partner API Key (Deprecated) |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | ApiKey <api_key> |
Request Body
Name | Type | Description |
---|---|---|
title | string | |
company:id* | string | Company to which the Import should belong. |
expected_invoices_count | string | Number of invoices expected to be added to this import. If provided the Import cannot be transmitted from the ClubCollect User Interface until all invoices are created. |
The following /imports/:id/transmit
endpoint will be deprecated soon in favour of manually transmitting an Import via the ClubCollect User Interface. This gives treasurers the opportunity to configure settings correctly which is not possible via the API.
Transmit Import
PUT
https://app.clubcollect.com/api/v2/imports/:id/transmit
Instruct ClubCollect to transmit the Import, initiating the invoice collection process.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Import ID |
Query Parameters
Name | Type | Description |
---|---|---|
api:key | string | Partner API Key (Deprecated) |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | ApiKey <api_key> |
Ensure you have finished creating all Invoices for this Import before calling this method. It is not possible to change or add more Invoices to an Import after the Import has been transmitted.
Update Import
PUT
https://app.clubcollect.com/api/v2/imports/:id
Update an import.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Import ID |
Query Parameters
Name | Type | Description |
---|---|---|
api:key | string | Partner API Key (Deprecated) |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | ApiKey <api_key> |
Request Body
Name | Type | Description |
---|---|---|
expected_invoices_count | string | Number of invoices expected to be added to this import. If provided the Import cannot be transmitted from the ClubCollect User Interface until all invoices are created. |
Delete Import
DELETE
https://app.clubcollect.com/api/v2/imports/:id
Deletes an import and all the invoices that have been created for the import.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Import ID |
Query Parameters
Name | Type | Description |
---|---|---|
api:key | string | Partner API Key (Deprecated) |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | ApiKey <api_key> |
Fetch Company Imports
GET
https://app.clubcollect.com/api/v2/companies/:id/imports
Returns the list of import batches created by a company, paginated and sorted in ascending order, i.e. from oldest to newest.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | ID of the company for which batches are requested. |
page_number | string | Page number requested. If not specified, default to |
page_size | string | Number of results per page. If not specified, default to |
Query Parameters
Name | Type | Description |
---|---|---|
api:key | string | Partner API Key (Deprecated) |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | ApiKey <api_key> |
Last updated