Skip to main content

Changing the Delivery Date at Gold Apple's Request

If it becomes known that an order cannot be accepted by the customer on the date specified when the order was created, or in any other case requiring a change to the delivery date, the Gold Apple IS may send a request to change the delivery date for a shipment that has already been created. The delivery order created in the courier service IS is updated automatically (if this is permitted given the current delivery status), and the courier service IS records that it accepted the request. The endpoint must be published over the secure HTTPS protocol.

Basic Information​

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

Request​

Header Parameters​

ParameterData typeRequiredDescriptionComment
Authorizationstring1Access token obtained during authorization. Passed in the format Bearer <access_token>The format is defined by the courier service (see Authorization in the ECS Service)
content-typestring1Request content typeFilled in as "application/json"

Path Parameters​

ParameterData typeRequiredDescriptionComment
orderNumberstring1Gold Apple order numberInternal order number in the Gold Apple IS. Tracking number.

Request Parameters​

ParameterData typeRequiredDescriptionComment
deliveryDatedate1Delivery datePer the "ISO 8601" standard, UTC0. Format: YYYY-MM-DD
deliveryTimeIntervalFromdate1Start of delivery intervalPer the "ISO 8601" standard, UTC0. Format: HH:mm
deliveryTimeIntervalTodate1End of delivery intervalPer the "ISO 8601" standard, UTC0. Format: HH:mm

Request example​

{
"deliveryDate": "2026-03-05T00:00:00Z",
"deliveryTimeIntervalFrom": "10:00",
"deliveryTimeIntervalTo": "12:00"
}

Response​

Response Codes and Messages​

CodeStatusMessageReason
200OKDelivery date has been updatedEverything completed successfully. The delivery date was updated in the courier service's IS
400Bad RequestMissing or inappropriate required parametersRequired parameters are missing or invalid. The response body must list the names of the fields that failed validation, in an arbitrary string format.
401UnauthorizedToken is invalidAuthentication error at the courier service
403ForbiddenHas no permissionInsufficient permissions
500Internal Server ErrorServer unavailableThe server is unavailable

Unsuccessful Response Parameters​

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

Unsuccessful response example​

{
"error": "Token is invalid"
}