Invoices

Returns a specific invoice

get/invoices/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Query parameters

expand, string

Comma-separated relations to expand: contact, price_variant, order

Response

Invoice details

Invoice required
id, string required
object, string required
status, 'open' | 'paid' | 'past_due' | 'void' required
number, string required
description, string nullable required
customer_name, string nullable required
email_address, string nullable required
collection_method, 'send_invoice' | 'charge_automatically' required
due_at, string date-time required
created_at, string date-time required
updated_at, string date-time required
checkout_url, string nullable required
pdf_url, string required

The invoice as a PDF. Anyone with the link can open it, so share it only with the contact.

amount, number nullable required
currency, string nullable required
paid_at, string nullable required
paid_out_of_band, boolean required

True when the invoice was marked paid for a payment made outside Crevio, such as cash or a bank transfer. No order exists for it.

contact, union

ID by default, full object when expanded

price_variant, union required

ID by default, full object when expanded

order, union

ID by default, full object when expanded

Changes

    • info

      added the required property order/oneOf[#/components/schemas/Order]/line_items/items/price_variant/oneOf[#/components/schemas/PriceVariant]/cross_sells to the response with the status

    • info

      added the required property order/oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/price_variants/items/cross_sells to the response with the status

    • info

      added the required property order/oneOf[#/components/schemas/Order]/line_items/items/product/oneOf[#/components/schemas/Product]/tax_code to the response with the status

    2 more changes in this revision