Admin Enterprise

Generate Credit Invoice

Generate an invoice for additional credits (post-pay).

Credits are NOT allocated until payment is recorded. Uses the contract's custom_credits_per_dollar rate or the default.

post/api/v1/admin/enterprise/contracts/{contract_public_id}/credit-invoice

Request

  • Base URL: https://api.sanifu.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.sanifu.ai/api/v1/admin/enterprise/contracts/{contract_public_id}/credit-invoice
  • Auth: one of:
    • OAuth 2 (password, token URL auth/jwt/login)
    • HTTP basic

Path parameters

contract_public_idstring uuid required

Request body

credit_amountinteger required
notesstring nullable

Response

Successful Response

public_idstring uuid nullable
created_atstring date-time nullable
created_by_idinteger nullable
updated_atstring date-time nullable
updated_by_idinteger nullable
is_archivedboolean nullable
archived_atstring date-time nullable
archived_by_idinteger nullable
idinteger required
invoice_numberstring required
invoice_typestring nullable
statusstring required
subtotal_centsinteger required
tax_centsinteger required
discount_centsinteger
total_centsinteger required
currencystring required
paid_atstring date-time nullable
due_datestring date-time nullable
period_startstring date-time nullable
period_endstring date-time nullable
enterprise_contract_idinteger nullable
notesstring nullable
line_itemsobject[] nullable
payment_providerstring nullable
provider_invoice_idstring nullable
provider_hosted_invoice_urlstring nullable
provider_invoice_pdf_urlstring nullable
tax_country_codestring nullable
tax_state_codestring nullable
tax_rate_percentstring nullable
tax_namestring nullable
billing_namestring nullable
billing_address_line1string nullable
billing_address_line2string nullable
billing_citystring nullable
billing_statestring nullable
billing_postal_codestring nullable
billing_countrystring nullable
customer_tax_idstring nullable
customer_tax_id_typestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.