Skip to content

Change distribution method

/distribution/change_distribution_method

Target audience: Developers

Release version: 4.4.0

Change distribution method

Introduction

This endpoint changes the set distribution method, and returns the id for the specified user product. Note that the distribution method can only be modified for user products containing paper products.

URI

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

Requirements

Identity Scope
No /external/distribution/w

Curl Example

Change by user product id

curl --request PUT \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/distribution/change_distribution_method \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <token>' \
  --header 'content-type: application/json' \
  --data '{
            "requested_by": "tulo",
            "user_product_id": "user_product_id",
            "distribution_method": "distribution_method_1"
          }' \

Response

Successful response

HTTP 200
{
  "item": "user_product_id"
}

Errors

This API uses the common error conventions of the Payway API

See common error responses