CancelOrderResponse resource

Methods

  • put - Cancel an order

Resource

{
    "orderNumber": "string",
    "partnerOrderNumber": "string",
    "responseCode": "int32",
    "responseMessage": "string",
    "subscriptionStatus": "string",
    "subscriptionStatusCode": "int32"
}

Properties

Name Type Description Additional
orderNumber string

The order ID in Nexway system

Optional
partnerOrderNumber string

Your unique order number

responseCode int32

A code corresponding to the treatement of cancellation. See a list of possible errors below

responseMessage string

A text describing the result of order cancellation

subscriptionStatus string

A text describing the result of subscription cancellation

subscriptionStatusCode int32

A code corresponding to result of cancellation of subscription (if applicable). See a list of possible errors below

Example

{
    "orderNumber": "54654",
    "partnerOrderNumber": "XXXXXXXXX",
    "responseCode": 0,
    "responseMessage": "OK",
    "subscriptionStatus": "Subscription cancelled",
    "subscriptionStatusCode": 200
}
Nexway Connect: CancelOrderResponse

Possible values for responseCode

Category Code Definition
Success 0 OK
Secret 70 secret is missing
71 secret not valid
100 reason code is missing
101 reason code is not valid
110 order number is missing
1000 internal error
1010 order not found
1011 order has been already cancelled
1020 expired cancel period (7 days)
1030 unauthorized cancel (coming soon)
1070 unauthorized cancel - at least 1 product non cancellable in the order

Possible values for subscriptionStatusCode

Category Code Definition
Success 0 Subscription cancelled
1010 No subscription to be cancelled
1011 Subscription was already cancelled
1000 Error while cancelling subscription
1001 Error when retrieving subscription status