Get received subscriptions
/me/get_received_subscriptions
Target audience: Developers
Get received subscriptions
Introduction
This endpoint will return all received shared subscriptions for an account. The response contains information on who shared it and what was shared.
URI
Requirements
Curl Example
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v1/me/get_received_subscriptions \
--header 'accept: application/json' \
--header 'authorization: Bearer <access_token_with_identity>'
Response
Example response
HTTP 200
{
"items": [
{
"accepted": true,
"shared_by": {
"account_id": "5c6291d537c2ed78a11518b7",
"name": "John Doe",
"contact_email": "sharer@email.com"
},
"received_product": {
"product_id": "5c6291d537c2ed78a1151349",
"name": "product_name",
"description": "short_description",
"product_code": "package_code"
}
}
]
}
Errors
Example error response
HTTP 404 Not Found
HTTP 500 Internal Server Error