POST /v1/credit-notes
POST
/v1/credit-notesAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredQuery parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinvoiceIdstringrequiredmin length 1
reasonstringrequiredAllowed:
duplicated_chargeproduct_unsatisfactoryorder_changeorder_cancellationfraudulent_chargeotherlinesobject[]requiredShow propertiesHide properties
Array of
objectdescriptionstringrequiredmin length 1
amountnumberrequiredinvoiceLineIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltaxClassificationKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullbucketstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmetadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullcreditNoteIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldescriptionstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullissuedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmetadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullrefundDestinationstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltenantIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltaxIdempotencyKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerTaxAddressobject | nullShow propertiesHide properties
Any of:
object
line1stringrequiredmin length 1
citystringrequiredmin length 1
regionstringrequiredmin length 1
postalCodestringrequiredmin length 1
countrystringrequiredmin length 1
line2string | nullShow propertiesHide properties
Any of:
string
stringnull
nullnull
nullcustomerTaxIdsobject[] | nullShow propertiesHide properties
Any of:
object[]
Array of
objecttypestringrequiredmin length 1
valuestringrequiredmin length 1
null
nullcustomerTypestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerTaxExemptboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nullcustomerTaxExemptionRefstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullfallbackOnProviderUnavailableboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nulltaxIdValidationstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltaxIdUnverifiableTreatmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullshipFromAddressobject | nullShow propertiesHide properties
Any of:
object
line1stringrequiredmin length 1
citystringrequiredmin length 1
regionstringrequiredmin length 1
postalCodestringrequiredmin length 1
countrystringrequiredmin length 1
line2string | nullShow propertiesHide properties
Any of:
string
stringnull
nullnull
nulltaxBehaviorstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullclassificationKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
201
Success
dataobjectrequiredShow propertiesHide properties
creditNoteobjectrequiredShow propertiesHide properties
creditNoteIdstringrequiredmin length 1
creditNoteNumberstringrequiredmin length 1
invoiceIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftfinalizedreasonstringrequiredAllowed:
duplicated_chargeproduct_unsatisfactoryorder_changeorder_cancellationfraudulent_chargeothercurrencystringrequiredmin length 1
subtotalnumberrequireddiscountAdjustmentTotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequiredcreditAmountnumberrequiredrefundAmountnumberrequiredoffsetAmountnumberrequiredbalanceAmountnumberrequiredissuedAtstringrequiredmin length 1
metadataobjectrequiredsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullfinalizedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldescriptionstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreditStatusstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrefundStatusstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullbillingRefundIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullpaymentsRefundIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrefundRequestedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrefundResolvedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllinesobject[]requiredShow propertiesHide properties
Array of
objectcreditNoteLineIdstringrequiredmin length 1
creditNoteIdstringrequiredmin length 1
descriptionstringrequiredmin length 1
amountnumberrequiredcurrencystringrequiredmin length 1
metadataobjectrequiredinvoiceLineIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullbucketstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullwalletRecreditAmountnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullcashRefundAmountnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullinvoiceobjectrequiredShow propertiesHide properties
invoiceIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftopenpaidpartially_paidpast_duevoiduncollectiblecurrencystringrequiredmin length 1
subtotalnumberrequireddiscountTotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequiredamountPaidnumberrequiredamountRemainingnumberrequiredmetadataobjectrequiredsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreditNoteTotalnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullcustomerBalanceAppliedTotalnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullperiodStartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullperiodEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullissuedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldueAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullfinalizedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullvoidedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreatedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullupdatedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1