Skip to content

Attach an uploaded file to a bill

Request

Security
oauth2ClientCredentials(Required scopes: bills:write)
Path
billIdstringrequired
Headers
org_wallet_refstring
business_idstringrequired
Bodyapplication/jsonrequired
file_namestringrequired
Example:"invoice.pdf"
urlstringrequired

URL returned by the upload endpoint

content_typestringrequired
Example:"application/pdf"
sizenumber
Example:102400
curl -i -X POST \
  'https://developer.boyahq.com/_mock/v2/openapi/bills/{billId}/attachments' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'business_id: string' \
  -H 'org_wallet_ref: string' \
  -d '{
    "file_name": "invoice.pdf",
    "url": "string",
    "content_type": "application/pdf",
    "size": 102400
  }'

Responses