Use the file entity to store files and related metadata. Files can be sorted by size, MIME-type, user-defined tags, and description.
The following methods are available to upload files: multipart/form-data encoded form, RAW POST — by sending the file contents as the POST body, and fetching from URL — by providing the file URL using the 'url' parameter.
Use the attachments entity to link a file to one or multiple objects, such as: customer, dispute, transaction, order, plan, product, invoice, or timeline comment. Attachments enable you to quickly find and use files related to specific entities.
Retrieves a list of attachments. You may sort attachments by: id, name, relatedId, relatedType, fileId, createdTime, and updatedTime.
Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.
For more information, see Search filters.
Expands a request to include embedded objects within the _embedded property of the response. This field accepts a comma-separated list of objects.
For more information, see Embedded resources.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/attachments
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/attachments
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/attachments
- SecretApiKey
- JWT
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/attachments?limit=1000&offset=1000&filter=string&q=string&expand=string&fields=string&sort=string' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'List of attachments retrieved.
ID of the linked file object.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
[ { "id": "att_0YV7J787J0DW0918MQQMDHWA7M", "fileId": "file_0YV7HZ7KDCC5WBV9Q7WRKG1H6N", "relatedType": "customer", "relatedId": "string", "name": "string", "description": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ], "_embedded": { … } } ]