Limit the number of collection items to be returned. Use 0 to return an empty collection and still receive the count of matching items in Pagination-Total.
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.
- 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
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/attachments?limit=0&offset=0&filter=string&q=string&fields=string&sort=string' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Total number of items that match the request. The value is independent of limit, including when limit is 0.
[ { "id": "att_0YV7J787J0DW0918MQQMDHWA7M", "fileId": "file_0YV7HZ7KDCC5WBV9Q7WRKG1H6N", "relatedType": "credit-memo-timeline-comment", "relatedId": "string", "name": "string", "description": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ] } ]