Create a AP Vendor
    • 06 Jan 2026
    • 5 Minutes to read
    • Dark
      Light

    Create a AP Vendor

    • Dark
      Light

    Article summary

    Post
    /ap-rest-api/rest/1/apvendor

    Overview

    A vendor is an entity a company purchases products or services from, resulting in invoices and payments. In CMiC, vendors are managed under a Business Partner record, which can represent either a vendor or a customer. A vendor record is typically created alongside the Business Partner to store vendor-specific details.This endpoint allows you to create, update, and query vendor records in CMiC.

    Notes

    Before creating a vendor using apvendor, a Business Partner record must already exist in CMiC. To create one, use the Business Partners API.

    UI Navigation

    Financials > Accounts Payable > Setup > Maintain Vendors

    Reference Article

    Maintain Business Partners

    Maintain Vendors

    apvendor Attributes (required)

    CMiC UI FieldnameObjectNameDescriptionTypeData LengthExample
    Vendor Company CodeapvendorBpvenCompCodeThis is the company the vendor belongs.  This must be a VALID CMiC Company Code that has already be setup in Accounts Payable.string8001
    Business Partner CodeapvendorBpvenBpCodeThis is the Business Partner the vendor was created from. This must be a VALID CMiC Business Partner, and pre-exist before creating the vendor record.string8BNSRIG
    Vendor Terms CodeapvendorBpvenTermCodePayment terms determine the default due date, discount date, percent, and retainage percent used during invoice entry. This field defaults from the AP Control file, but can be changed as required. This must be a VALID CMiC payment Terms Code for the company entered in ‘BpvenCompCode’.string6NET30
    Vendor Special Terms and ConditionsapvendorBpvenSpecialTermsFlagCheck this box to indicate that special contract terms and conditions are associated with the vendor.string1Y/N
    Vendor Currency CodeapvendorBpvenCurrCodeThis is the vendor currency code. When a vendor is created, the system creates the vendor with the same currency as the company. If the currency is changed, the system will verify that the cash account matches the currency code. When the accounts do not match, the currency of the cash account will have to be changed.string3USD
    Vendor Check Merge FlagapvendorBpvenCheckMergeFlagThis flag allows this vendor to merge payments with another company. It is the same vendor for check printingstring1Y/N
    Vendor Department CodeapvendorBpvenApDeptCodeEnter the department and account number to be used by the Accounts Payable system for automatic General Ledger distributions for this vendor.string600
    Vendor Account CodeapvendorBpvenApAccCodeEnter the department and account number to be used by the Accounts Payable system for automatic General Ledger distributions for this vendor.string1621011
    Vendor Cash Department CodeapvendorBpvenCashDeptCodeEnter the department and account number to be used by the Accounts Payable system for automatic General Ledger distributions affecting the cash account for this vendor. This is the bank account from which payments to the vendor will be made.string600
    Vendor Cash Account CodeapvendorBpvenCashAccCodeEnter the department and account number to be used by the Accounts Payable system for automatic General Ledger distributions affecting the cash account for this vendor. This is the bank account from which payments to the vendor will be made.string1610001
    Vendor Expense Department CodeapvendorBpvenExpDeptCodeThis is the default department for vouchers charged directly to the GL for this vendor.  This must be a VALID CMiC department code.string600
    Vendor Expense Account CodeapvendorBpvenExpAccCodeThis is the default expense account for this vendor that will be used by the system if the voucher being entered is a direct GL expense type of voucher.  This must be a VALID CMiC account.string1679010
    Vendor Prepaid expenses Department CodeapvendorBpvenPpeDeptCodeEnter the department and account number to be used by the Accounts Payable system for automatic General Ledger distributions that affect the expense for this vendor.string600
    Vendor Prepaid expenses Account CodeapvendorBpvenPpeAccCodeEnter the department and account number to be used by the Accounts Payable system for automatic General Ledger distributions that affect the expense for this vendor.string1621013
    Vendor Discount Department CodeapvendorBpvenDiscDeptCodeThis is the department code that any discounts taken with this vendor will be captured.  This must be a VALID CMiC department code. The department and account number are used by the Accounts Payable system for automatic General Ledger distributions of discounts for this vendor.string600
    Vendor Discount Account CodeapvendorBpvenDiscAccCodeThis is the account where discounts taken with this vendor will be recorded.  This must be a VALID CMiC account. The department and account number are used by the Accounts Payable system for automatic General Ledger distributions of discounts for this vendor.string1679020
    Vendor Retainage Department CodeapvendorBpvenHldbkDeptCodeThis is the default department that will be used to record retainage held for the vendor.  This must be a VALID CMiC department code. The department and account number to be used by the Accounts Payable module for automatic General Ledger distributions of retainage for this vendor.string600
    Vendor Retainage Account CodeapvendorBpvenHldbkAccCodeThis is the account that will be used to record retainage held by this vendor.  This must be a VALID CMiC Account. The department and account number to be used by the Accounts Payable module for automatic General Ledger distributions of retainage for this vendor.string1621012
    Security
    HTTP
    Type basic

    Basic authentication

    Header parameters
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourceitem+json
    Body parameters
    object
    Example{ "BpvenCompCode": "MAIC", "BpvenBpCode": "BP0022", "BpvenCheckMergeFlag": "N", "BpvenSpecialTermsFlag": "N", "BpvenTermCode": "NET30", "BpvenCurrCode": "CAD", "BpvenApDeptCode": "00", "BpvenApAccCode": "21015", "BpvenCashDeptCode": "00", "BpvenCashAccCode": "10101", "BpvenExpDeptCode": "00", "BpvenExpAccCode": "50050", "BpvenPpeDeptCode": "00", "BpvenPpeAccCode": "21018", "BpvenDiscDeptCode": "00", "BpvenDiscAccCode": "79020", "BpvenHldbkDeptCode": "00", "BpvenHldbkAccCode": "21017", "BpvenVUuid": "" }
    Responses
    201

    Created

    Headers
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourceitem+json
    {
      "BpvenCompCode": "001",
      "BpvenCompName": null,
      "BpvenBpCode": "BP0023",
      "BpvenBpName": null,
      "BpvenPayAdd1": null,
      "BpvenPayAdd2": null,
      "BpvenPayAdd3": null,
      "BpvenPayRegionCode": null,
      "BpvenPayRegionName": null,
      "BpvenPayCountry": null,
      "BpvenPayPostalCode": null,
      "BpvenPayContactName": null,
      "BpvenPayPhone": null,
      "BpvenPayFax": null,
      "BpvenPayEmail": null,
      "BpvenWebSite": null,
      "BpvenBuyCode": null,
      "BpvenClassCode": null,
      "BpvenClassName": null,
      "BpvenStatusCode": null,
      "BpvenPrefCode": null,
      "BpvenPrefName": null,
      "BpvenTermCode": "NET30",
      "BpvenTermName": null,
      "Bpven1099Code": null,
      "Bpven1099Name": null,
      "BpvenAltAddCode": null,
      "BpvenAltAddName": null,
      "BpvenShpinstDesc": null,
      "BpvenActiveFlag": null,
      "Bpven5018RepFlag": null,
      "BpvenOneTimeFlag": null,
      "BpvenUseApctrlComplFlag": null,
      "BpvenSpecialTermsFlag": "N",
      "BpvenOrdAdd1": null,
      "BpvenOrdAdd2": null,
      "BpvenOrdAdd3": null,
      "BpvenOrdRegionCode": null,
      "BpvenOrdCountry": null,
      "BpvenOrdPostalCode": null,
      "BpvenOrdContactName": null,
      "BpvenOrdPhone": null,
      "BpvenOrdFax": null,
      "BpvenOrdEmail": null,
      "BpvenCurrCode": "CAD",
      "BpvenInvSerCode": null,
      "BpvenDistTypeCode": null,
      "BpvenHldbkPc": null,
      "BpvenAllowTranFlag": null,
      "BpvenCheckMergeFlag": "N",
      "BpvenDiscreteChqFlag": null,
      "BpvenPrenoteFlag": null,
      "BpvenTppayCode": null,
      "BpvenDefaultPayCode": null,
      "BpvenEftFlag": null,
      "BpvenEftEmail": null,
      "BpvenPrefContactMth": null,
      "BpvenEmpNo": null,
      "BpvenBankCode": null,
      "BpvenBankAccNum1": null,
      "BpvenBankAccNum2": null,
      "BpvenBankAccNum3": null,
      "BpvenPaymodeId": null,
      "BpvenIbanNum": null,
      "BpvenSwiftBicCode": null,
      "BpvenApDeptCode": "00",
      "BpvenApAccCode": "21015",
      "BpvenCashDeptCode": "00",
      "BpvenCashAccCode": "10101",
      "BpvenExpDeptCode": "00",
      "BpvenExpAccCode": "50050",
      "BpvenPpeDeptCode": "00",
      "BpvenPpeAccCode": "21018",
      "BpvenDiscDeptCode": "00",
      "BpvenDiscAccCode": "79020",
      "BpvenHldbkDeptCode": "00",
      "BpvenHldbkAccCode": "21017",
      "BpvenTax1Code": null,
      "BpvenTaxlic1": null,
      "BpvenTax2Code": null,
      "BpvenTaxlic2": null,
      "BpvenTax3Code": null,
      "BpvenTaxlic3": null,
      "BpvenTax4Code": null,
      "BpvenTaxlic4": null,
      "BpvenTax5Code": null,
      "BpvenTaxlic5": null,
      "BpvenVUuid": "F30AAFAB16413578E05316821FAC8E9A",
      "BpvenIuCreateDate": null,
      "BpvenIuUpdateDate": null,
      "links": [
        {
          "rel": "self",
          "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/ap-rest-api/rest/1/apvendor/F30AAFAB16413578E05316821FAC8E9A",
          "name": "apvendor",
          "kind": "item"
        },
        {
          "rel": "canonical",
          "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/ap-rest-api/rest/1/apvendor/F30AAFAB16413578E05316821FAC8E9A",
          "name": "apvendor",
          "kind": "item"
        }
      ]
    }
    object