The order document object

An order document is a file related to an order that merchants can submit to Evy.

Example order document object

{
  "object": "order_document",
  "id": "ad970703-2625-4e81-8ba7-08e7f8afd127",
  "order_id": "my-order-id",
  "type": "purchase_receipt",
  "url": "data:text/plain;charset=UTF-8;base64,dG90bw==",
  "created_at": "2024-03-01T17:28:33.689374Z"
}

Attributes

objectstring, value is order_documentString representing the object’s type. Objects of the same type share the same value.
idstringUnique identifier (UUID) generated by Evy of the order document.
order_idstringID of the order that the document is attached to.
typeenum, current value are: "purchase_receipt"The type of the document. Currently, only "purchase_receipt" is accepted.
urlstringData URI, composed of the MIME type of the document followed by the document encoded as base64. For example: "data:text/plain;charset=UTF-8;base64,dG90bw==".
created_attimestampTime at which the object was created. Formatted as a RFC 3339 timestamp, with up to nanosecond precision.