The account number a vendor assigns to you. For example, a telephone company might assign your phone number as your vendor account number. This helps the vendor to match the payment information with the bill being paid.
Returns up to 100 object references from the collection with a key, ID, and link for each vendor account number. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "1",
- "href": "/objects/accounts-payable/vendor-account-number/1"
}, - {
- "key": "2",
- "id": "2",
- "href": "/objects/accounts-payable/vendor-account-number/2"
}, - {
- "key": "3",
- "id": "3",
- "href": "/objects/accounts-payable/vendor-account-number/3"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new vendor account number.
required | object Vendor this account number is associated with. | ||||
| |||||
required | object Location associated with the vendor account number. | ||||
| |||||
vendorAccountNumber required | string Account number for the vendor. Example: "VAN-5134986722" | ||||
id | string Unique identifier for the vendor account number. This value is the same as the Example: "1" |
Created
Bad Request
{- "location": {
- "key": "2"
}, - "vendor": {
- "key": "127"
}, - "vendorAccountNumber": "1234567555"
}
{- "ia::result": {
- "key": "7",
- "id": "7",
- "href": "/objects/accounts-payable/vendor-account-number/1"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified vendor account number.
key required | string System-assigned key for the vendor account number. Example: 1 |
OK
Bad Request
{- "ia::result": {
- "key": "7",
- "id": "7",
- "location": {
- "key": "11",
- "id": "11",
- "name": "United States of America",
- "href": "/objects/company-config/location/1"
}, - "vendorAccountNumber": "VAN-5134986722",
- "href": "/objects/accounts-payable/vendor-account-number/1",
- "vendor": {
- "key": "33",
- "id": "33",
- "href": "/objects/accounts-payable/vendor/1"
}
}, - "ia::meta": {
- "totalCount": 1
}
}
Updates an existing vendor account number by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the vendor account number. Example: 1 |
object Location associated with the vendor account number. | |||||
| |||||
vendorAccountNumber | string Account number for the vendor. Example: "VAN-5134986722" | ||||
object Vendor this account number is associated with. | |||||
|
OK
Bad Request
{- "vendorAccountNumber": "1234567888"
}
{- "ia::result": {
- "key": "2",
- "id": "2",
- "href": "/objects/accounts-payable/vendor-account-number/2"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes a vendor account number.
key required | string System-assigned key for the vendor account number. Example: 1 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find vendor account numbers that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}