Retrieve order agreements
Returns the legal contracts (agreements) that were accepted during checkout of this order.
Each entry includes the contract type, a URL to the document, and the full contract text fetched from the document store. Returns an empty agreements array if no contracts were recorded for the order.
get/orders/{id}/order_agreements/
Authorizations
AuthorizationstringRequired
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Path parameters
idintegerRequired
The unique identifier of the order.
Responses
200
The legal agreements associated with the order.
application/json
The legal agreements associated with an order.
401
Authentication credentials were not provided or are invalid.
application/json
403
The authenticated user does not have administrator privileges.
application/json
404
The requested order does not exist.
application/json
get/orders/{id}/order_agreements/
GET /api/v1/remote/1/orders/{id}/order_agreements/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"agreements": [
{
"order_id": "12345",
"url": "https://bucket.s3.amazonaws.com/contracts/sales_12345.html",
"type": "sales",
"contract_content": "<p>Distance Sales Agreement...</p>"
}
]
}Last updated
Was this helpful?

