Actions36
- Bill Actions
- Business Actions
- Card Actions
- Cashback Actions
- Department Actions
- Entity Actions
- Limit Actions
- Location Actions
- Memo Actions
- Merchant Actions
- Receipt Actions
- Reimbursement Actions
- Transaction Actions
- Transfer Actions
- User Actions
- Vendor Actions
- Webhook Actions
Bill → Upload Draft Attachment
AI-generatedSummary
Upload a binary file as an attachment to a draft bill in Ramp, specifying the draft bill ID, the binary data property containing the file, and the attachment type.
Inputs
- Draft Bill ID (required) — The ID of the draft bill to which the attachment will be uploaded.
- Binary Property (required) — The name of the binary property that holds the file data to upload.
- Attachment Type (required) — The type of attachment, either 'Invoice' or 'Other'. Only one 'Invoice' attachment is allowed per bill.
Output shape
The API response JSON from the file upload endpoint, representing the uploaded attachment's details.
The operation uploads a file using multipart/form-data to the endpoint '/bills/drafts/{draftBillId}/attachments'. The binary file content is fetched from the provided binary property name of the input item. Errors on rate limits are retried up to 3 times with exponential backoff.
Examples
Example 1: Uploading a PDF invoice attachment to a draft bill
Set 'Draft Bill ID' to the target draft bill's ID, specify 'Binary Property' as the workflow binary data property holding the PDF file (default 'data'), and set 'Attachment Type' to 'Invoice'.
