Skip to main content

Changing the Delivery Date at the Courier Service's Request

If it becomes known that an order cannot be delivered to the customer on the date accepted by the courier service's IS when the delivery order was created, the courier service's IS may send a request to change the delivery date to the Gold Apple IS. The delivery order recorded in the Gold Apple IS when the shipment was created is updated automatically (if this is permitted given the current delivery status), and the Gold Apple IS records that it accepted the request.

Send this request in the following cases:

  • postponing the delivery date due to logistics constraints or delays;
  • a change in delivery timing to a pickup point (PP);
  • when delivery can be completed earlier than planned;
  • any other changes affecting the planned delivery date of the order.

The request must be sent both when the delivery date is postponed to a later date and when it is moved to an earlier date.

Basic Information​

Request method typePATCH
Path / URL/api/v1/orders/{orderNumber}
DescriptionMethod for changing an order's delivery date information at the courier service's request
DirectionThe request is executed by the courier service. The response is provided by the Gold Apple IS.

Request​

Header Parameters​

ParameterData typeRequiredDescriptionComment
Authorizationstring1Access token issued by the servicesee the Authorization in the Service method
content-typestring1Request content typeFilled in as "application/json"

Request Path Parameters​

ParameterData typeRequiredDescriptionComment
orderNumberstring1Order number in the Gold Apple ISInternal order number in the Gold Apple IS. Tracking number

Request Parameters​

ParameterData typeRequiredDescriptionComment
deliveryServiceCodestring1Courier service codeAgreed upon during system integration
deliveryDatedate1Delivery datePer the "ISO 8601" standard. Format: YYYY-MM-DD
deliveryTimeIntervalFromdate1Start of delivery intervalPer the "ISO 8601" standard. Format: HH:mm
deliveryTimeIntervalTodate1End of delivery intervalPer the "ISO 8601" standard. Format: HH:mm
dateChangeReasonstring1Reason for the date changeReason for the delivery date change, free-form string

Request example​

{
"deliveryServiceCode": "CDEK",
"deliveryDate": "2026-03-05T00:00:00Z",
"deliveryTimeIntervalFrom": "10:00",
"deliveryTimeIntervalTo": "12:00",
"dateChangeReason": "Delayed due to logistics constraints, rescheduled to next business day"
}

Response​

Response Codes and Messages​

CodeStatusMessageReason
200OKDelivery date has been updatedEverything completed successfully. The delivery date was updated in the Gold Apple IS
400Bad RequestMissing or inappropriate required parametersRequired parameters are missing or invalid
401UnauthorizedToken is invalidAuthentication error at the courier service
403ForbiddenHas no permissionInsufficient permissions
500Internal Server ErrorServer unavailableThe server is unavailable

Successful Response Parameters​

200 OK

Unsuccessful Response Parameters​

ParameterData typeRequiredDescriptionComment
errorstring1Human-readable description of the errorsee the "Response Codes and Messages" section

Unsuccessful response example​

{
"error": "Missing or inappropriate required parameters"
}

/api/v1/orders/{orderNumber}

Authorizations:
Bearer
path Parameters
orderNumber
required
string
Request Body schema:
required
deliveryServiceCode
required
string non-empty
deliveryDate
required
string <date-time>
deliveryTimeIntervalFrom
required
string non-empty
deliveryTimeIntervalTo
required
string non-empty
dateChangeReason
required
string non-empty

Responses

Request samples

Content type
{
  • "deliveryServiceCode": "string",
  • "deliveryDate": "2019-08-24T14:15:22Z",
  • "deliveryTimeIntervalFrom": "string",
  • "deliveryTimeIntervalTo": "string",
  • "dateChangeReason": "string"
}

Response samples

Content type
application/json
{ }