Get distribution methods
/distribution/get_distribution_methods
Target audience: Developers
Release version: 4.4.0
Get distribution methods¶
Introduction¶
This endpoint returns the currently available distribution methods for a product.
URI¶
| Environment | URI |
|---|---|
| Stage | https://payway-api.stage.adeprimo.se/external/api/v1/distribution/get_distribution_methods |
| Production | https://backend.worldoftulo.com/external/api/v1/distribution/get_distribution_methods |
Requirements¶
| Identity | Scope |
|---|---|
| No | /external/distribution/r |
Parameters¶
| Field | Required | Type | Description |
|---|---|---|---|
| user_product_id | Optional | String | The id of the optional subscription to fetch available distribution methods for. If omitted, all distribution methods will be returned. Size range: ..24 Allowed values: "/^[a-f\d]{24}$/i" |
Curl Example¶
Get¶
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v1/distribution/get_distribution_methods \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
Response¶
Successful response¶
HTTP 200
{
"items": [
"distribution_method_1",
"distribution_method_2",
"distribution_method_3",
]
}
Errors¶
This API uses the common error conventions of the Payway API