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",
"code": "request_failed",
"type": "invalid_request_error"
}{
"message": "authentication Failed",
"code": "request_failed",
"type": "authentication_error"
}{
"message": "something is not found",
"code": "somethind_not_found",
"type": "invalid_request_error"
}{
"message": "order with same id is already present",
"code": "order_already_exists",
"type": "invalid_request_error"
}{
"message": "something is not found",
"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",
"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",
"code": "request_failed",
"type": "invalid_request_error"
}{
"message": "authentication Failed",
"code": "request_failed",
"type": "authentication_error"
}{
"message": "something is not found",
"code": "somethind_not_found",
"type": "invalid_request_error"
}{
"message": "order with same id is already present",
"code": "order_already_exists",
"type": "invalid_request_error"
}{
"message": "something is not found",
"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",
"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 related to order
Request Body to Update extended data related to order
Response
OK
The complete update order extended data entity
Was this page helpful?