Retrieve a custom object

Retrieves the custom object with the given ID.

SecuritybearerAuth
Request
path Parameters
custom_object_type
required
string

Custom Object Definition Type

custom_object_id
required
string

Custom Object Id

query Parameters
fields[]
Array of strings

Allows you to specify which fields are returned in the response. Accepted field values will be those available in your tenant.

custom_object[custom_object_type].fields[]
Array of strings

Allows you to specify which fields are returned in the response. Accepted field values and custom_object_types will be those available in your tenant.

filter[]
Array of strings

A case-sensitive filter on the list. See the 'Filter lists' section of the Quickstart API Tutorial for detailed instructions.

page_size
integer [ 1 .. 99 ]

The maximum number of results to return in a single page. If the specified page_size is less than 1 or greater than 99, Zuora will return a 400 error.

expand[]
Array of strings

Allows you to expand responses by including related object information in a single call. See the Expand responses section of the Quickstart API Tutorials for detailed instructions.

header Parameters
zuora-track-id
string

A custom identifier for tracking API requests. If you set a value for this header, Zuora returns the same value in the response header. This header enables you to track your API calls to assist with troubleshooting in the event of an issue. The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), or quote (').

zuora-entity-ids
string

An entity ID. If you have Multi-entity enabled and the authorization token is valid for more than one entity, you must use this header to specify which entity to perform the operation on. If the authorization token is only valid for a single entity or you do not have Multi-entity enabled, you do not need to set this header.

idempotency-key
string

Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. This idempotency key should be a unique value, and the Zuora server identifies subsequent retries of the same request using this value. For more information, see Idempotent Requests.

accept-encoding
string

Include a accept-encoding: gzip header to compress responses, which can reduce the bandwidth required for a response. If specified, Zuora automatically compresses responses that contain over 1000 bytes. For more information about this header, see Request and Response Compression.

content-encoding
string

Include a content-encoding: gzip header to compress a request. Upload a gzipped file for the payload if you specify this header. For more information, see Request and Response Compression.

Responses
200

Default Response

400

Bad Request

401

Unauthorized

404

Not Found

405

Method Not Allowed

429

Too Many Requests

500

Internal Server Error

502

Bad Gateway

503

Service Unavailable

504

Gateway Timeout

get/custom_objects/{custom_object_type}/{custom_object_id}
Request samples

curl --request GET      --url 'https://rest.apisandbox.zuora.com/v2/custom_objects/car/07a0903d-dd59-480e-a6ae-37fb4486f002'      --header 'Authorization: Bearer b33c3733c75c486298f520483bdcdcc0'      --header 'Content-Type: application/json'
Response samples
application/json
{
  • "id": "8ad08ccf8437067601843a7af4e64rq3",
  • "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
  • "updated_time": "2021-08-04T03:49:06.051Z",
  • "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
  • "created_time": "2021-08-04T03:49:06.051Z",
  • "name__c": "X4",
  • "brand__c": "BMW",
  • "engine__c": "Turbo-4SL"
}