Uploads one file (e.g. the PDF confirmation of an online purchase) and attaches it to the line. Answers with the document file id.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/card-statements/lines/{lineId}/receipt
curl \
--request POST 'https://wyzio.app/api-v1/card-statements/lines/{lineId}/receipt' \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}