Skip to content

/cancel_product_change

/me/cancel_product_change

Target audience: Developers

1
Release version: 3.9.0

Introduction

This endpoint lets you cancel a registered product downgrade request.

Prerequisites and Constraints

  • Target user_product should have a registered downgrade request.

URI

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

Required scope

1
/external/me/w

Parameters

Field Required Description
id Required id of the user product which to cancel a registered downgrade request for

Curl Example

1
2
3
4
5
6
7
8
curl --request PUT \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/me/cancel_product_change \
  --header 'accept: application/json' \
  --header 'authorization: Bearer token' \
  --header 'content-type: application/json' \
  --data '{
  "id": "50f3ac249f6aef294d000007"
}'

Response

Field Description
id id of the user_product

Example Response

1
2
3
4
HTTP 200
{
    "id": "50f3ac249f6aef294d000007"
}

Errors

not_found

This will occur if no active package downgrade request exists for the user_product.

1
2
3
4
5
6
HTTP 404 Not Found
{
  "code": "not_found",
  "field": "package_downgrade_request",
  "message": "package_downgrade_request could not be found"
}