The account number that a vendor assigns to an entity in a multi-entity company. For example, a telephone company might assign a phone number as a vendor account number. Account numbers help match payment information to bills being paid.
Returns a collection with a key, ID, and link for each vendor account number. This operation is mostly for use in testing; use the query service 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. Associate an entity's location with a vendor and assign an account number for that vendor and entity location pair.
required | object Vendor the account number is associated with. | ||||
| |||||
required | object Location associated with the entity. | ||||
| |||||
vendorAccountNumber required | string Vendor account number for the associated entity. Example: "VAN-5134986722" | ||||
id | string Unique identifier for the vendor account number. This value is the same as the Example: "12" |
Created
Bad Request
{- "location": {
- "key": "2"
}, - "vendor": {
- "key": "127"
}, - "vendorAccountNumber": "1234567555"
}
{- "ia::result": {
- "key": "7",
- "id": "7",
- "href": "/objects/accounts-payable/vendor-account-number/7"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified vendor account number.
key required | string System-assigned unique key for the vendor account number. Example: 17 |
OK
Bad Request
{- "ia::result": {
- "key": "7",
- "id": "7",
- "location": {
- "key": "11",
- "id": "11",
- "name": "United States of America",
- "href": "/objects/company-config/location/11"
}, - "vendor": {
- "key": "33",
- "id": "33",
- "href": "/objects/accounts-payable/vendor/33"
}, - "vendorAccountNumber": "VAN-5134986722",
- "href": "/objects/accounts-payable/vendor-account-number/7"
}, - "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 unique key for the vendor account number. Example: 17 |
object Location associated with the entity. | |||||
| |||||
vendorAccountNumber | string Vendor account number for the associated entity. Example: "VAN-5134986722" | ||||
object Vendor the 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 unique key for the vendor account number. Example: 17 |
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
}
}