Attaches 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.
Attachment resource.
Attachment created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
Unauthorized access. Invalid credentials used.
Access forbidden.
Conflict.
Invalid data sent.
{- "fileId": "string",
- "relatedType": "customer",
- "relatedId": "string",
- "name": "string",
- "description": "string"
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "fileId": "string",
- "relatedType": "customer",
- "relatedId": "string",
- "name": "string",
- "description": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "file": { }
}
}