Retrieve Vendors of Specified IDs
Beta release
This is pre-release documentation for an API in public beta and is subject to change.
If you know the ID of a Vendor object, you can call the RetrieveVendor or BulkRetrieveVendors endpoint to retrieve the vendor object. The BulkRetrieveVendors
endpoint can take more than one vendor ID to retrieve multiple vendors at a time.
Retrieve a single vendor at a time
To retrieve a single vendor, call RetrieveVendor while specifying the vendor's ID value as the vendor_id
path parameter value.
Request: Retrieve a single vendor at a time
The following example shows how to call RetrieveVendor
to retrieve a vendor of a known vendor ID:
Response: Retrieve a single vendor
The successful response returns a payload similar to the following:
Retrieve multiple vendors at a time
To retrieve multiple vendors at a time, call BulkRetrieveVendors while specify the IDs of the vendors in the vendors_ids
list of the request payload.
Request: Retrieve multiple vendors at a time
The following example retrieves two vendors with the CARJMAFUWDYBTPO2
and 5VPCRLENAFZXFZNA
IDs:
Response: Retrieve multiple vendors at once
When successful, the response returns a payload similar to the following, where the responses
object is a map of vendors indexed by the vendor ID:
If you specify an invalid or non-existing vendor ID in the input parameter of vendor_ids
in the BulkRetrieveVendors
request call, as illustrated:
The response returns a payload similar to the following, where the found vendor (CARJMAFUWDYBTPO2
) is returned as expected, but for the invalid or non-existing vendor ID (5VPCRLENAFZXFZNA_
) an error is returned:
If you need more assistance, contact Developer Support or ask for help in the Developer Forums.