curl --request PUT \
--url https://sandbox.cashfree.com/pg/orders/{order_id}/extended \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"shipment_details": [
{
"tracking_company": "DHL",
"tracking_urls": [
"https://dhl.com/track/123456"
],
"tracking_numbers": [
"TRACK123456"
]
}
]
}
'
{
"cf_order_id": "2149460581",
"order_id": "order_3242Tq4Edj9CC5RDcMeobmJOWOBJij",
"shipment_details": [
{
"tracking_company": "DHL",
"tracking_urls": [
"https://dhl.com/track/123456"
],
"tracking_numbers": [
"TRACK123456"
]
}
],
"order_delivery_status": {
"status": "CANCELLED",
"reason": "wrong address"
}
}{
"message": "bad URL, please check API documentation",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "request_failed",
"type": "invalid_request_error"
}{
"message": "authentication Failed",
"code": "request_failed",
"type": "authentication_error"
}{
"message": "something is not found",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "something_not_found",
"type": "invalid_request_error"
}{
"message": "order with same id is already present",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "order_already_exists",
"type": "invalid_request_error"
}{
"message": "something is not found",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "request_invalid",
"type": "idempotency_error"
}{
"message": "Too many requests from IP. Check headers",
"code": "request_failed",
"type": "rate_limit_error"
}{
"message": "internal Server Error",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "internal_error",
"type": "api_error"
}Orders
Update Order Extended
Use this api to update the order related data like shipment details,order delivery status etc.
When to use this API
- To provide/update the shipment details or order delivery status.
- Once the order is PAID.
PUT
/
orders
/
{order_id}
/
extended
curl --request PUT \
--url https://sandbox.cashfree.com/pg/orders/{order_id}/extended \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"shipment_details": [
{
"tracking_company": "DHL",
"tracking_urls": [
"https://dhl.com/track/123456"
],
"tracking_numbers": [
"TRACK123456"
]
}
]
}
'
{
"cf_order_id": "2149460581",
"order_id": "order_3242Tq4Edj9CC5RDcMeobmJOWOBJij",
"shipment_details": [
{
"tracking_company": "DHL",
"tracking_urls": [
"https://dhl.com/track/123456"
],
"tracking_numbers": [
"TRACK123456"
]
}
],
"order_delivery_status": {
"status": "CANCELLED",
"reason": "wrong address"
}
}{
"message": "bad URL, please check API documentation",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "request_failed",
"type": "invalid_request_error"
}{
"message": "authentication Failed",
"code": "request_failed",
"type": "authentication_error"
}{
"message": "something is not found",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "something_not_found",
"type": "invalid_request_error"
}{
"message": "order with same id is already present",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "order_already_exists",
"type": "invalid_request_error"
}{
"message": "something is not found",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "request_invalid",
"type": "idempotency_error"
}{
"message": "Too many requests from IP. Check headers",
"code": "request_failed",
"type": "rate_limit_error"
}{
"message": "internal Server Error",
"help": "Check latest errors and resolution from Merchant Dashboard API logs: https://bit.ly/4glEd0W Help Document: https://bit.ly/4eeZYO9",
"code": "internal_error",
"type": "api_error"
}Authorizations
XClientID & XClientSecretXClientID & XPartnerAPIKeyXClientID & XClientSignatureHeaderXPartnerMerchantID & XPartnerAPIKey
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Headers
Body
application/json
Request body to update extended data for an order.
Response
Success response for updating extended data for an order.
Updated shipment and delivery status details for an order.
Was this page helpful?