Skip to main content
PUT
/
v3
/
export-jobs
/
{jobId}
/
items
Update Export Job Items
curl --request PUT \
  --url https://external.pleo.io/v3/export-jobs/{jobId}/items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '
[
  {
    "accountingEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "pending",
    "exportedAt": "2023-11-07T05:31:56Z",
    "externalId": "<string>",
    "externalUrl": "<string>",
    "failureReason": "<string>",
    "failureReasonType": "receipt_upload_failure"
  }
]
'
{
  "data": [
    {
      "accountingEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "exportJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "pending",
      "exportedAt": "2023-11-07T05:31:56Z",
      "externalId": "<string>",
      "externalUrl": "<string>",
      "failureReason": "<string>",
      "failureReasonType": "receipt_upload_failure"
    }
  ],
  "errors": [
    {
      "accountingEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "message": "<string>",
      "type": "ACCOUNTING_ENTRY_DOES_NOT_EXIST"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

jobId
string<uuid>
required

Export Job ID

Body

application/json;charset=UTF-8
accountingEntryId
string<uuid>
required

ID of the accounting entry being updated.

status
enum<string>
required
Available options:
pending,
in_progress,
failed,
successful,
abandoned
exportedAt
string<date-time>

Date and time when the export job was initiated.

externalId
string

The accounting system identifier of the entry after export.

externalUrl
string

URL to access the resource of the entry in the accounting system.

failureReason
string

Detailed message explaining the failure.

failureReasonType
enum<string>
Available options:
receipt_upload_failure,
receipt_download_failure,
receipt_file_size_limit_exceeded,
receipt_conversion_failure,
unexpected_failure,
invalid_configuration,
missing_configuration,
accounting_system_authentication_failure,
accounting_system_rate_limit,
accounting_system_unreachable,
validation_failure,
accounting_system_validation_failure,
authorization_failure,
accounting_system_timeout,
vendor_unknown,
account_unknown,
tax_code_unknown,
tag_unknown

Response

Export job items updated successfully.

data
object[]
required
errors
object[]
required

If any errors occurred in updating the export job items, they will be listed here.