For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

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?