Skip to main content

Job listing invoices

This endpoint retrieves the list of invoices linked to a specific job listing.

Endpoint

POST https://canadamotorjobs.com/api/v1/{locale}/job-listings/invoices

Authentication

The API requires Bearer authentication. Include the token in the request header:

Authorization: Bearer <your_token>

Query parameters

ParameterTypeDescriptionRequiredDefault
job_listing_idstringThe unique job listing identifierNo
pagenumberPage numberNo1
per_pagenumberNumber of invoices per pageNo10
statusstring: paid, pending, failedInvoice statusNoall
fromdate: YYYY-MM-DDStart dateNonull
todate: YYYY-MM-DDEnd dateNotoday
sort_bystringSort criterionNocreated_at
sort_directionstring: asc, descSort directionNodesc

Errors

CodeMessageDescription
200OKThe invoice list was retrieved successfully
404Not FoundThe specified job listing does not exist
403ForbiddenYou are not authorized to access this job listing
401UnauthorizedAuthentication is required

Notes

  • Invoices are sorted by creation date (descending) by default.
  • You can change the sort criterion and direction using the sort_by and sort_direction parameters.
  • Invoices are linked to a specific job listing.