VendorCredit is transaction issued by a vendor to the accounting company, indicating a reduction or cancellation of the amount owed to the vendor. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a purchasing transaction. A VendorCredit can be applied to Accounts Payable Invoices to decrease the overall amount of the Invoice.idUUIDremote_idStringcreated_atDateTime (ISO 8601)modified_atDateTime (ISO 8601)numberStringtransaction_dateDateTime (ISO 8601)vendorUUIDtotal_amountNumbercurrencyEnumXUA, AFN, AFA, ALL, ALK, DZD, ADP, AOA, AOK, AON, AOR, ARA, ARS, ARM, ARP, ARL, AMD, AWG, AUD, ATS, AZN, AZM, BSD, BHD, BDT, BBD, BYN, BYB, BYR, BEF, BEC, BEL, BZD, BMD, BTN, BOB, BOL, BOV, BOP, BAM, BAD, BAN, BWP, BRC, BRZ, BRE, BRR, BRN, BRB, BRL, GBP, BND, BGL, BGN, BGO, BGM, BUK, BIF, XPF, KHR, CAD, CVE, KYD, XAF, CLE, CLP, CLF, CNX, CNY, CNH, COP, COU, KMF, CDF, CRC, HRD, HRK, CUC, CUP, CYP, CZK, CSK, DKK, DJF, DOP, NLG, XCD, DDM, ECS, ECV, EGP, GQE, ERN, EEK, ETB, EUR, XBA, XEU, XBB, XBC, XBD, FKP, FJD, FIM, FRF, XFO, XFU, GMD, GEK, GEL, DEM, GHS, GHC, GIP, XAU, GRD, GTQ, GWP, GNF, GNS, GYD, HTG, HNL, HKD, HUF, IMP, ISK, ISJ, INR, IDR, IRR, IQD, IEP, ILS, ILP, ILR, ITL, JMD, JPY, JOD, KZT, KES, KWD, KGS, LAK, LVL, LVR, LBP, LSL, LRD, LYD, LTL, LTT, LUL, LUC, LUF, MOP, MKD, MKN, MGA, MGF, MWK, MYR, MVR, MVP, MLF, MTL, MTP, MRU, MRO, MUR, MXV, MXN, MXP, MDC, MDL, MCF, MNT, MAD, MAF, MZE, MZN, MZM, MMK, NAD, NPR, ANG, TWD, NZD, NIO, NIC, NGN, KPW, NOK, OMR, PKR, XPD, PAB, PGK, PYG, PEI, PEN, PES, PHP, XPT, PLN, PLZ, PTE, GWE, QAR, XRE, RHD, RON, ROL, RUB, RUR, RWF, SVC, WST, SAR, RSD, CSD, SCR, SLL, XAG, SGD, SKK, SIT, SBD, SOS, ZAR, ZAL, KRH, KRW, KRO, SSP, SUR, ESP, ESA, ESB, XDR, LKR, SHP, XSU, SDD, SDG, SDP, SRD, SRG, SZL, SEK, CHF, SYP, STN, STD, TVD, TJR, TJS, TZS, XTS, THB, XXX, TPE, TOP, TTD, TND, TRY, TRL, TMT, TMM, USD, USN, USS, UGX, UGS, UAH, UAK, AED, UYW, UYU, UYP, UYI, UZS, VUV, VES, VEB, VEF, VND, VNN, CHE, CHW, XOF, YDD, YER, YUN, YUD, YUM, YUR, ZWN, ZRN, ZRZ, ZMW, ZMK, ZWD, ZWR, ZWL. In cases where there is no clear mapping, the original value passed through will be returned. To receive all enum values in the original format, use the show_enum_origins query parameter. Learn more.exchange_rateStringinclusive_of_taxBooleanTrue if inclusive, False if exclusive.companyUUIDlinesVendorCreditLine[]VendorCreditLine object is used to represent a vendor credit's line items.idUUIDremote_idStringcreated_atDateTime (ISO 8601)modified_atDateTime (ISO 8601)net_amountNumbertracking_categoriesArraydescriptionStringaccountUUIDcompanyUUIDprojectUUIDcontactUUIDtax_rateUUIDexchange_rateStringremote_was_deletedBooleantracking_categoriesArrayapplied_to_linesVendorCreditApplyLineForVendorCredit[]VendorCreditApplyLine object is used to represent a applied vendor credit.remote_idStringcreated_atDateTime (ISO 8601)modified_atDateTime (ISO 8601)invoiceUUIDapplied_dateDateTime (ISO 8601)applied_amountStringremote_was_deletedBooleanremote_was_deletedBooleanaccounting_periodUUIDfield_mappingsObjectremote_dataRemoteData[]RemoteData object is used to represent the full data pulled from the third-party API for an object.pathStringdataAnyhttps://api.merge.dev/api/accounting/v1/vendor-credits
Returns a list of VendorCredit objects.
company_idStringcreated_afterDateTime (ISO 8601)created_beforeDateTime (ISO 8601)cursorStringexpandStringinclude_deleted_dataBooleaninclude_remote_dataBooleaninclude_shell_dataBooleanmodified_afterDateTime (ISO 8601)modified_beforeDateTime (ISO 8601)page_sizeIntegerremote_idStringtransaction_date_afterDateTime (ISO 8601)transaction_date_beforeDateTime (ISO 8601)
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarrayaccountstringcompanystringprojectstringtax_ratestringaccounting_periodUUIDapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringinclusive_of_taxBooleannumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarraydescriptionstringaccountstringprojectstringapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringnumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringtax_ratestringexchange_ratestringapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringnumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUID
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarraydescriptionstringaccountstringtax_ratestringapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringinclusive_of_taxBooleannumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUIDhttps://api.merge.dev/api/accounting/v1/vendor-credits
Creates a VendorCredit object with the given values. To run asynchronously, see our guide.
is_debug_modeBooleanrun_asyncBooleanmodelObjectnumberStringtransaction_dateDateTime (ISO 8601)vendorUUIDid field in the Contact object.total_amountNumbercurrencyEnumXUA, AFN, AFA, ALL, ALK, DZD, ADP, AOA, AOK, AON, AOR, ARA, ARS, ARM, ARP, ARL, AMD, AWG, AUD, ATS, AZN, AZM, BSD, BHD, BDT, BBD, BYN, BYB, BYR, BEF, BEC, BEL, BZD, BMD, BTN, BOB, BOL, BOV, BOP, BAM, BAD, BAN, BWP, BRC, BRZ, BRE, BRR, BRN, BRB, BRL, GBP, BND, BGL, BGN, BGO, BGM, BUK, BIF, XPF, KHR, CAD, CVE, KYD, XAF, CLE, CLP, CLF, CNX, CNY, CNH, COP, COU, KMF, CDF, CRC, HRD, HRK, CUC, CUP, CYP, CZK, CSK, DKK, DJF, DOP, NLG, XCD, DDM, ECS, ECV, EGP, GQE, ERN, EEK, ETB, EUR, XBA, XEU, XBB, XBC, XBD, FKP, FJD, FIM, FRF, XFO, XFU, GMD, GEK, GEL, DEM, GHS, GHC, GIP, XAU, GRD, GTQ, GWP, GNF, GNS, GYD, HTG, HNL, HKD, HUF, IMP, ISK, ISJ, INR, IDR, IRR, IQD, IEP, ILS, ILP, ILR, ITL, JMD, JPY, JOD, KZT, KES, KWD, KGS, LAK, LVL, LVR, LBP, LSL, LRD, LYD, LTL, LTT, LUL, LUC, LUF, MOP, MKD, MKN, MGA, MGF, MWK, MYR, MVR, MVP, MLF, MTL, MTP, MRU, MRO, MUR, MXV, MXN, MXP, MDC, MDL, MCF, MNT, MAD, MAF, MZE, MZN, MZM, MMK, NAD, NPR, ANG, TWD, NZD, NIO, NIC, NGN, KPW, NOK, OMR, PKR, XPD, PAB, PGK, PYG, PEI, PEN, PES, PHP, XPT, PLN, PLZ, PTE, GWE, QAR, XRE, RHD, RON, ROL, RUB, RUR, RWF, SVC, WST, SAR, RSD, CSD, SCR, SLL, XAG, SGD, SKK, SIT, SBD, SOS, ZAR, ZAL, KRH, KRW, KRO, SSP, SUR, ESP, ESA, ESB, XDR, LKR, SHP, XSU, SDD, SDG, SDP, SRD, SRG, SZL, SEK, CHF, SYP, STN, STD, TVD, TJR, TJS, TZS, XTS, THB, XXX, TPE, TOP, TTD, TND, TRY, TRL, TMT, TMM, USD, USN, USS, UGX, UGS, UAH, UAK, AED, UYW, UYU, UYP, UYI, UZS, VUV, VES, VEB, VEF, VND, VNN, CHE, CHW, XOF, YDD, YER, YUN, YUD, YUM, YUR, ZWN, ZRN, ZRZ, ZMW, ZMK, ZWD, ZWR, ZWL.exchange_rateStringinclusive_of_taxBooleanTrue if inclusive, False if exclusive.companyUUIDid field in the CompanyInfo object.tracking_categoriesArrayapplied_to_linesArrayaccounting_periodUUIDid field in the AccountingPeriod object.integration_paramsObjectlinked_account_paramsObject
Supported POST Model Parameters
accounting_periodUUIDapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported POST Model Parameters
applied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported POST Model Parameters
applied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringinclusive_of_taxBooleanlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleanremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUIDAdditional POST Parameters
integration_paramsObjectpayment_methodString
Supported POST Model Parameters
applied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringinclusive_of_taxBooleanlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUID
Supported POST Model Parameters
companyUUIDcurrencyEnumexchange_rateStringinclusive_of_taxBooleanlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUIDhttps://api.merge.dev/api/accounting/v1/vendor-credits/{id}
Returns a VendorCredit object with the given id.
expandStringidUUIDinclude_remote_dataBooleaninclude_shell_dataBoolean
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarrayaccountstringcompanystringprojectstringtax_ratestringaccounting_periodUUIDapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringinclusive_of_taxBooleannumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarraydescriptionstringaccountstringprojectstringapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringnumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringtax_ratestringexchange_ratestringapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringnumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUID
Supported Response Fields
linesVendorCreditLine[]remote_idstringnet_amountnumbertracking_categoriesarraydescriptionstringaccountstringtax_ratestringapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringinclusive_of_taxBooleannumberStringremote_dataRemoteData[]pathstringdatastringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUIDhttps://api.merge.dev/api/accounting/v1/vendor-credits/meta/patch/{id}
Returns metadata for VendorCredit PATCHs.
idUUIDhttps://api.merge.dev/api/accounting/v1/vendor-credits/meta/post
Returns metadata for VendorCredit POSTs.

Supported POST Model Parameters
accounting_periodUUIDapplied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported POST Model Parameters
applied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertracking_categoriesArraytransaction_dateDateTime (ISO 8601)vendorUUID
Supported POST Model Parameters
applied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancompanyUUIDcurrencyEnumexchange_rateStringinclusive_of_taxBooleanlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleanremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUIDAdditional POST Parameters
integration_paramsObjectpayment_methodString
Supported POST Model Parameters
applied_to_linesVendorCreditApplyLineForVendorCredit[]remote_idstringcreated_atstringmodified_atstringinvoicestringapplied_datestringapplied_amountstringremote_was_deletedbooleancurrencyEnumexchange_rateStringinclusive_of_taxBooleanlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUID
Supported POST Model Parameters
companyUUIDcurrencyEnumexchange_rateStringinclusive_of_taxBooleanlinesVendorCreditLine[]idstringremote_idstringcreated_atstringmodified_atstringnet_amountnumbertracking_categorystringtracking_categoriesarraydescriptionstringaccountstringcompanystringprojectstringcontactstringtax_ratestringexchange_ratestringremote_was_deletedbooleannumberStringremote_idStringtotal_amountNumbertransaction_dateDateTime (ISO 8601)vendorUUID