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
id*
string
Import ID, supplied by ClubCollect.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Create Import
POST
https://app.clubcollect.com/api/v2/imports
Create a new, empty Import.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Request Body
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
id*
string
Import ID
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
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
id*
string
Import ID
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Request Body
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
id*
string
Import ID
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
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
id*
string
ID of the company for which batches are requested.
page_number
string
Page number requested. If not specified, default to 1
.
page_size
string
Number of results per page. If not specified, default to 30
.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Last updated
Was this helpful?