Getting an Order
Getting an Order
GET Endpoint:
https://strapi-3apoh.ondigitalocean.app/api/live-orders/<order-id>Example Response
{ "id": <unique-numeric-id>, "documentId": <your-order-id>, "createdAt": "2025-08-12T07:30:55.101Z", "live_order_fulfillments": [ { "id": <unique-numeric-fulfillment-id>, "documentId": <fulfillment-id>, "order_status": "Pending", // Pending | Created | Procured | Printed "unique_doc_ref": "", "certificate_number": "", "certificate_file": { "id": <unique-numeric-certificate-id>, "documentId": <certificate-id>, "url": "https://example.com/CERTIFICATE.pdf", "name": "CERTIFICATE.pdf" } } ], "stamp_duty": { "id": <unique-numeric-stamp-duty-id>, "amount": 100, "description": "N/A", "first_party_address": "Street XYZ", "first_party_name": "ABC", "first_party_PAN": "", "paid_by": "First Party", "quantity": 1, "second_party_address": "Street MNO", "second_party_name": "HEL", "second_party_PAN": "", "state": "Rajasthan", "consideration_price": 10, "mobile_number": "1234567890", "uploaded_document": null, "purchased_by": "", "state_purpose": { "id": <unique-purpose-numeric-id>, "documentId": <purpose-id>, "purpose_name": "Simple Agreement [5(g)]" } }}Sample Requests:
curl -X GET "https://strapi-3apoh.ondigitalocean.app/api/live-orders/<order-id>" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer <your-token>"fetch("https://strapi-3apoh.ondigitalocean.app/api/live-orders/<order-id>", { method: "GET", headers: { "Content-Type": "application/json", "Authorization": "Bearer <your-token>" }})import axios from 'axios';
axios.get("https://strapi-3apoh.ondigitalocean.app/api/live-orders/<order-id>", { headers: { "Content-Type": "application/json", "Authorization": "Bearer <your-token>" }})import requests
url = "https://strapi-3apoh.ondigitalocean.app/api/live-orders/<order-id>"headers = { "Content-Type": "application/json", "Authorization": "Bearer <your-token>"}
response = requests.get(url, headers=headers)