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
object | string, value is order_document | String representing the object’s type. Objects of the same type share the same value. |
id | string | Unique identifier (UUID) generated by Evy of the order document. |
order_id | string | ID of the order that the document is attached to. |
type | enum, current value are: "purchase_receipt" | The type of the document. Currently, only "purchase_receipt" is accepted. |
url | string | Data 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_at | timestamp | Time at which the object was created. Formatted as a RFC 3339 timestamp, with up to nanosecond precision. |