Skip to main content

Upload a document

post/crossBorderInvoices

Uploads a document for a merchant account.

Endpoint destination URL
Click to copy
contextstringRequired

The document context indicating the type of document being uploaded. Possible values: paCbInvoice.

filestringRequired

The PDF file to upload. Filename must be {pspReference}.pdf

merchantAccountstringRequired
Min length: 1Max length: 255

The merchant account that the document belongs to.

After submitting a call, you receive a response message to inform you that your request was received and processed.

Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.

HTTP Responses

  • 201

    Document uploaded successfully.

  • 400

    Bad request.

  • 401

    Unauthorized.

  • 403

    Forbidden.

  • 422

    Unprocessable Entity. The request contains invalid fields.

  • 500

    Internal server error.