Skip to content

/pending_shares

/me/pending_shares

Target audience: Developers

1
Release version: 3.9.1

Introduction

This endpoint returns pending shares for the account.

What is a pending share?

If another user has shared his or hers subscription with the user it will be in a 'pending' state until accepted by the user a.k.a. the receiver. The response from the pending_shares request can be used to accept the pending shares.

URI

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

Required scope

1
/external/me/r

Curl Example

1
2
3
4
curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/me/pending_shares \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token_with_identity>'

Response

Field Description
package_sharing_id id of affected share, use this to accept a share using accept_share
shared_product_id id of affected package connected to the share.
sharer_account_id id of account that shared the package of his or hers subscription.

Example response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
HTTP 200 OK
{
  "items": [
    {
      "package_sharing_id": "5c6d3fc009c04ce00d3750d2",
      "shared_product_id": "5c6d3fc009c04ce00d3750be",
      "sharer_account_id": "5c6d3fc009c04ce00d3750d0"
    }
  ]
}