Skip to content

Get possible start dates

/get_possible_start_dates

Target audience: Developers

Get possible start dates

Introduction

This endpoint returns the possible start dates for a subscription on a given package or campaign, either for a given account or for a customer that is not identified.

URI

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

Requirements

Identity Scope
No /external/order/r

Parameters

Name Type Description Required
account_id String The id of the account making the purchase.
Size range: ..24 Allowed values: "/^[a-f\d]{24}$/i"
No
product_code String The product code of the package or campaign to get the possible start dates for.
Size range: 0..1024
Yes

Curl Example

Get possible start dates

curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/order/get_possible_start_dates?account_id=60253f1809c04c24149cba43&product_code=product_code \
  --header 'accept: application/json' \
  --header 'authorization: Bearer token' \

Response

Example response

HTTP 200
{
  "item": {
   "subscription_start_dates" : ["2021-10-16", "2021-10-17", "2021-10-18", "2021-10-21",  "2021-10-22", "2021-10-23"]
  }
}

Errors

This API uses the common error conventions of the Payway API

See common error responses