Skip to content

Cancel product change

/accounts/cancel_product_change

Target audience: Developers

Release version: 4.6.1

Cancel subscription downgrade/change

Introduction

This endpoint lets you cancel a registered product downgrade- or change request.

Prerequisites and Constraints

  • Target user_product should have a registered downgrade- or change request.

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v1/accounts/cancel_product_change
Production https://backend.worldoftulo.com/external/api/v1/accounts/cancel_product_change

Requirements

Identity Scope
Yes /external/account/w

Parameters

Field Required Description
account_id Required id of the account which to cancel a registered downgrade/change request for
user_product_id Required id of the user product which to cancel a registered downgrade/change request for

Curl Example

curl --request PUT \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/accounts/cancel_product_change \
  --header 'accept: application/json' \
  --header 'authorization: Bearer token' \
  --header 'content-type: application/json' \
  --data '{
    "account_id": "ad9ea0i0adfk09dafk09dafad",
    "user_product_id": "50f3ac249f6aef294d000007"
}'

Response

Field Description
id id of the user_product

Example Response

HTTP 200
{
    "id": "50f3ac249f6aef294d000007"
}

Errors

This API uses the common error conventions of the Payway API

See common error responses