Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. Depending on the resource on which the custom field is added, it may be available in the Rebilly UI.
Example: A custom field called preferredCommunicationChannel is added to the customer resource. It has two allowed values, which are 'email' and 'phone'.
{
"customFields": {
"preferredCommunicationChannel": "email"
}
}For detailed information on Rebilly resources, see Resources.
Retrieves the custom fields schema for a specified resource.
Security
SecretApiKey or JWT
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/custom-fields/{resource}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/custom-fields/{resource}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/custom-fields/{resource}
- SecretApiKey
- JWT
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/custom-fields/{resource}?limit=0&offset=0' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Schema of custom fields retrieved.
Array []
Describes the data type. The custom field type value cannot be changed.
Array of strings with up to 255 characters. The maximum size is 1000 elements.
Value:"array"
Discriminator
Response
- array
- boolean
- date
- datetime
- integer
- number
- string
- monetary
[ { "name": "string", "type": "array", "description": "string", "isEnabled": true, "additionalSchema": { … }, "_links": [ … ] } ]