Skip to content

Attach documents to a sale

This method allows documents to be attached to a sale, for example disability certificates or large family/single-parent family supporting documents.

PUT /Sale

The request Content-Type must be multipart/form-data, including the following fields:

  • SaleId: (string) Required. Sale identifier.
  • Attachments: (list[list]) Required. Array in which each element is a byte array containing the document to be attached.
  • Timestamp: (dateTime). Time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).

  • Success: (boolean). Value that indicates whether the call was processed correctly or not.

  • Errors: (list). Array of errors.

    • Error: (object).
      • ErrorMessage: (string). Error message explaining why the request was not successful. If it was correct, it will return null.
      • ErrorCode: (int). Code that identifies the error.
  • ErrorEntityBreakDown (list): list that contains objects with the name and ID in case of error.

    • Id (string): identifier
    • Name (string): related name of the identifier.