curl --request POST \
--url https://api-staging.eximpe.com/pg/orders/{order_id}/documents/ \
--header 'Content-Type: multipart/form-data' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--form identifier=IN1123213 \
--form document_type=invoice \
--form file='@example-file'{
"success": true,
"message": "Documents uploaded successfully",
"data": {
"order_id": "OD9411897512",
"reference_id": "TEST_FOB46D",
"amount": 1000,
"currency": "INR",
"mop_type": "UPI",
"buyer": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+919876543210",
"address": {
"line_1": "123 Main Street",
"line_2": "Apt 4B",
"city": "City",
"state": "State",
"postal_code": "123456"
},
"pan_number": "BNYPG9212K",
"dob": "2010-01-23"
},
"product": {
"name": "Sample Product",
"description": "This is a sample product description",
"hs_code": "98051000",
"hs_code_description": "Portable automatic data processing machines",
"type_of_goods": "goods"
},
"invoice": {
"number": "IN1123213",
"date": "2025-06-22",
"file": "https://eximpe.com/inv-12312312.pdf"
},
"air_waybills": [
{
"number": "AWB-23343",
"file": "https://eximpe.com/awb-8F3F51D2.pdf"
}
],
"payments": [
{
"payment_id": "PR1469384681",
"mop_type": "UPI",
"status": "captured",
"status_message": null,
"settlement": {
"status": "ready_for_settlement",
"message": null,
"settlement_details": null
},
"created_at": "2025-06-23T10:44:14.344135Z"
}
],
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-06-23T10:44:11.702363Z"
}
}Upload an invoice or other document for an existing order.
curl --request POST \
--url https://api-staging.eximpe.com/pg/orders/{order_id}/documents/ \
--header 'Content-Type: multipart/form-data' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--form identifier=IN1123213 \
--form document_type=invoice \
--form file='@example-file'{
"success": true,
"message": "Documents uploaded successfully",
"data": {
"order_id": "OD9411897512",
"reference_id": "TEST_FOB46D",
"amount": 1000,
"currency": "INR",
"mop_type": "UPI",
"buyer": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+919876543210",
"address": {
"line_1": "123 Main Street",
"line_2": "Apt 4B",
"city": "City",
"state": "State",
"postal_code": "123456"
},
"pan_number": "BNYPG9212K",
"dob": "2010-01-23"
},
"product": {
"name": "Sample Product",
"description": "This is a sample product description",
"hs_code": "98051000",
"hs_code_description": "Portable automatic data processing machines",
"type_of_goods": "goods"
},
"invoice": {
"number": "IN1123213",
"date": "2025-06-22",
"file": "https://eximpe.com/inv-12312312.pdf"
},
"air_waybills": [
{
"number": "AWB-23343",
"file": "https://eximpe.com/awb-8F3F51D2.pdf"
}
],
"payments": [
{
"payment_id": "PR1469384681",
"mop_type": "UPI",
"status": "captured",
"status_message": null,
"settlement": {
"status": "ready_for_settlement",
"message": null,
"settlement_details": null
},
"created_at": "2025-06-23T10:44:14.344135Z"
}
],
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-06-23T10:44:11.702363Z"
}
}multipart/form-data.
This endpoint allows you to upload a document (like an invoice or air waybill), associated with an existing order.Client app ID. You can find your app id in the merchant dashboard.
Client secret key. You can find your secret in the merchant dashboard.
Unique identifier of the order
Document upload request. The body must be multipart/form-data.
Document uploaded successfully
Indicates if the document upload was successful
Response message
Show child attributes
Unique order identifier
Unique reference identifier for the order
Order amount
3-letter ISO currency code
Order status
PAYMENT_PENDING, PAYMENT_SUCCESSFUL, FAILED Order creation timestamp
Method of payment type
UPI, CREDIT_CARD, NETBANKING, DEBIT_CARD, QR Show child attributes
Buyer's full name
Buyer's email address
Buyer's phone number with country code
Buyer's PAN number
Buyer's date of birth
Show child attributes
Product name
Type of goods (e.g., goods)
goods, services Product description
Harmonized System code
Description of the HS code
Array of payment request information
Show child attributes
Payment request ID
Method of payment type
UPI, CREDIT_CARD, NETBANKING, DEBIT_CARD, QR Payment status
pending, captured, failed, cancelled Payment request creation timestamp
Payment status message
Order status message
Whether this is a test order