Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Transfer Upload a supporting document

Upload a supporting document

Uploads a document, such as an invoice, for a payout that needs one. Pass the returned `id` in `supporting_document_ids` on `POST /v1/transfer` or on resume. A document can be used by one transfer only, and an unused one is deleted after 7 days. The file must be PDF, PNG or JPEG, at most 700 KB.

POSThttps://api.gravv.xyz/v1/transfer/documentsTry it
Api-Key

Headers

NameDescription
Idempotency-Key:stringRequired
1 to 255 printable ASCII characters. A retry with the same key within 24 hours returns the first response, including a 400. After you correct a request, send a new key.

Body parameters

NameDescription
customer_id:stringRequired
document_type:stringRequired
Possible values: invoice, proforma_invoice, purchase_order, contract, receipt, bill_of_lading, customs_declaration, bank_statement, proof_of_income, tax_document, other
description:string
Required when document_type is other
file_name:stringRequired
content_type:stringRequired

Must match the file itself

Possible values: application/pdf, image/png, image/jpeg

content:stringRequired
The file as standard base64, at most 700 KB decoded

Response

Returns 200 OK. The stored document

NameDescription
data:object
Show 7 child attributesobject
error:null

Errors

StatusMeaning
200The stored document
400A field or the file is invalid
404The customer is not one of yours
413The request or file is too large
503Storage is unavailable. Retry.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/transfer/documents' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: payout-inv-114-1' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": "bb6c6022-f1d8-492f-80f0-7547134bb42f",
"document_type": "invoice",
"file_name": "inv-2026-114.pdf",
"content_type": "application/pdf",
"content": "<base64>"
}'
Responseapplication/json
200400404413503OK
{
"data": {
"id": "5b0d8f3e-2a71-4c4f-9e0b-7d6c1a2b3c4d",
"document_type": "invoice",
"file_name": "inv-2026-114.pdf",
"content_type": "application/pdf",
"size_bytes": 184233,
"created_at": "2026-10-13T09:10:02Z"
},
"error": null
}