Skip to main content

Request to Reverse a Cancellation

If a cancellation request (see Order Cancellation at the Courier Service's Request) was sent by the courier service by mistake, or the courier service is ready to resume delivery to the customer for any other reason within 48 hours after the order was marked for cancellation, the courier service's IS may send a request to reverse a cancellation to the Gold Apple IS. When this request is executed, the cancellation mark is automatically removed from the order and the courier service can resume delivery and send order statuses as normal.

The courier service may also send a request to reverse a cancellation for an order for which a cancellation was previously initiated at Gold Apple's request (see Order Cancellation at Gold Apple's Request) within 48 hours of receiving the request. When this request is executed, the cancellation mark is automatically removed from the order and the courier service can resume delivery and send order statuses as normal.

info

When using this method, the previously sent cancellation status must be excluded from the order's status history in order to avoid logical gaps in the status history.

Please note that the specified time period (48 hours) depends on the terms of the service agreement concluded between Gold Apple and the Courier Service.

Basic Information​

Request method typePOST
Path / URL/api/v1/orders/{orderNumber}/reopen
DescriptionMethod for returning an order to processing after cancellation
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
commentstring1Comment on the request to reverse a cancellationHuman-readable comment, free-form string

Request example​

{
"comment": "Cancellation withdrawn, delivery will proceed as planned"
}

Response​

Response Codes and Messages​

CodeStatusMessageReason
200OKOrder has been reopenedEverything completed successfully. The order was marked for cancellation 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": "Invalid request format"
}

/api/v1/orders/{orderNumber}/reopen

Authorizations:
Bearer
path Parameters
orderNumber
required
string
Request Body schema:
required
comment
required
string non-empty

Responses

Request samples

Content type
{
  • "comment": "string"
}

Response samples

Content type
application/json
{ }