Invoices

Get invoice

Retrieve a single invoice with its payment transactions.

get/api/v1/invoices/{invoice_id}

Path parameters

invoice_idstring MeteroidId required
Example:inv_7n42DGM5Tflk9n8mt7Fhc7

Invoice ID

Response

Invoice details

amount_dueinteger required
applied_creditsinteger required
created_atstring date-time required
currency'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNH' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL' required
customer_idstring MeteroidId required
due_datestring date nullable
finalized_atstring date-time nullable
idstring MeteroidId required
invoice_datestring date required
invoice_numberstring required
invoice_type'RECURRING' | 'ONE_OFF' | 'ADJUSTMENT' | 'USAGE_THRESHOLD' required
marked_as_uncollectible_atstring date-time nullable
memostring nullable
net_termsinteger required
paid_atstring date-time nullable
payment_status'UNPAID' | 'PARTIALLY_PAID' | 'PAID' | 'ERRORED' | 'PROCESSING' required
purchase_orderstring nullable
referencestring nullable
status'DRAFT' | 'FINALIZED' | 'UNCOLLECTIBLE' | 'VOID' required
subscription_idstring MeteroidId
subtotalinteger required
subtotal_recurringinteger required
tax_amountinteger required
totalinteger required
updated_atstring date-time nullable
voided_atstring date-time nullable

Example response

{
  "currency": "EUR",
  "customer_details": {
    "billing_address": {
      "country": "US"
    },
    "id": "cus_7n42DGM5Tflk9n8mt7Fhc7"
  },
  "customer_id": "cus_7n42DGM5Tflk9n8mt7Fhc7",
  "id": "inv_7n42DGM5Tflk9n8mt7Fhc7",
  "subscription_id": "sub_7n42DGM5Tflk9n8mt7Fhc7",
  "transactions": [
    {
      "id": "pay_7n42DGM5Tflk9n8mt7Fhc7",
      "payment_method_id": "pm_7n42DGM5Tflk9n8mt7Fhc7"
    }
  ]
}

Changes

Changed in 7 of the 54 revisions of this API.23433

    • added the optional property tax_breakdown/items/exemption_reason to the response with the 200 status

      response-optional-property-added

    • added the optional property tax_breakdown/items/tax_reference to the response with the 200 status

      response-optional-property-added

    • added the new PROCESSING enum value to the payment_status response property for the response status 200

      response-property-enum-value-added

    • added the new REFUNDED enum value to the transactions/items/status response property for the response status 200

      response-property-enum-value-added

  • v1de35c02bb0d22927See the full diff
    • added the new ADJUSTMENT enum value to the invoice_type response property for the response status 200

      response-property-enum-value-added

    • added the new BANK_TRANSFER enum value to the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-added

    • added the new CANCELLED enum value to the transactions/items/status response property for the response status 200

      response-property-enum-value-added

    • added the new CARD enum value to the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-added

    • added the new DRAFT enum value to the status response property for the response status 200

      response-property-enum-value-added

    • added the new ERRORED enum value to the payment_status response property for the response status 200

      response-property-enum-value-added

    • added the new FAILED enum value to the transactions/items/status response property for the response status 200

      response-property-enum-value-added

    • added the new FINALIZED enum value to the status response property for the response status 200

      response-property-enum-value-added

    • added the new NOT_REGISTERED enum value to the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-added

    • added the new ONE_OFF enum value to the invoice_type response property for the response status 200

      response-property-enum-value-added

    • added the new OTHER enum value to the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-added

    • added the new PAID enum value to the payment_status response property for the response status 200

      response-property-enum-value-added

    • added the new PARTIALLY_PAID enum value to the payment_status response property for the response status 200

      response-property-enum-value-added

    • added the new PAYMENT enum value to the transactions/items/payment_type response property for the response status 200

      response-property-enum-value-added

    • added the new PENDING enum value to the transactions/items/status response property for the response status 200

      response-property-enum-value-added

    • added the new READY enum value to the transactions/items/status response property for the response status 200

      response-property-enum-value-added

    • added the new RECURRING enum value to the invoice_type response property for the response status 200

      response-property-enum-value-added

    • added the new REFUND enum value to the transactions/items/payment_type response property for the response status 200

      response-property-enum-value-added

    • added the new REVERSE_CHARGE enum value to the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-added

    • added the new SETTLED enum value to the transactions/items/status response property for the response status 200

      response-property-enum-value-added

    • added the new TAX_EXEMPT enum value to the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-added

    • added the new TOO_MANY_REQUESTS enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new TOO_MANY_REQUESTS enum value to the code response property for the response status 404

      response-property-enum-value-added

    • added the new TOO_MANY_REQUESTS enum value to the code response property for the response status 500

      response-property-enum-value-added

    • added the new UNCOLLECTIBLE enum value to the status response property for the response status 200

      response-property-enum-value-added

    • added the new UNPAID enum value to the payment_status response property for the response status 200

      response-property-enum-value-added

    • added the new USAGE_THRESHOLD enum value to the invoice_type response property for the response status 200

      response-property-enum-value-added

    • added the new VOID enum value to the status response property for the response status 200

      response-property-enum-value-added

    • added the new WALLET enum value to the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • removed the Adjustment enum value from the invoice_type response property for the response status 200

      response-property-enum-value-removed

    • removed the BankTransfer enum value from the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Cancelled enum value from the transactions/items/status response property for the response status 200

      response-property-enum-value-removed

    • removed the Card enum value from the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Draft enum value from the status response property for the response status 200

      response-property-enum-value-removed

    • removed the Errored enum value from the payment_status response property for the response status 200

      response-property-enum-value-removed

    • removed the Failed enum value from the transactions/items/status response property for the response status 200

      response-property-enum-value-removed

    • removed the Finalized enum value from the status response property for the response status 200

      response-property-enum-value-removed

    • removed the NotRegistered enum value from the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-removed

    • removed the OneOff enum value from the invoice_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Other enum value from the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Paid enum value from the payment_status response property for the response status 200

      response-property-enum-value-removed

    • removed the PartiallyPaid enum value from the payment_status response property for the response status 200

      response-property-enum-value-removed

    • removed the Payment enum value from the transactions/items/payment_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Pending enum value from the transactions/items/status response property for the response status 200

      response-property-enum-value-removed

    • removed the Ready enum value from the transactions/items/status response property for the response status 200

      response-property-enum-value-removed

    • removed the Recurring enum value from the invoice_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Refund enum value from the transactions/items/payment_type response property for the response status 200

      response-property-enum-value-removed

    • removed the ReverseCharge enum value from the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-removed

    • removed the Settled enum value from the transactions/items/status response property for the response status 200

      response-property-enum-value-removed

    • removed the TaxExempt enum value from the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-removed

    • removed the Uncollectible enum value from the status response property for the response status 200

      response-property-enum-value-removed

    • removed the Unpaid enum value from the payment_status response property for the response status 200

      response-property-enum-value-removed

    • removed the UsageThreshold enum value from the invoice_type response property for the response status 200

      response-property-enum-value-removed

    • removed the Void enum value from the status response property for the response status 200

      response-property-enum-value-removed

    • removed the Wallet enum value from the transactions/items/payment_method_info/oneOf[PaymentMethodInfo]/payment_method_type response property for the response status 200

      response-property-enum-value-removed

    • api tag Invoices added

      api-tag-added

    • api tag invoice removed

      api-tag-removed

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • v12244ec0dabe3131See the full diff
    • the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • added the new NotRegistered enum value to the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-added

    • added the new ReverseCharge enum value to the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-added

    • added the new TaxExempt enum value to the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property for the response status 200

      response-property-enum-value-added

    • removed subschema #1 subschema #2 subschema #3 subschema #4 from the tax_breakdown/items/exemption_type/oneOf[TaxExemptionType]/ response property oneOf list for the response status 200

      response-property-one-of-removed

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 274 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog