Skip to content

Get accepted user agreements

/me/accepted_user_agreements

Target audience: Developers

Get accepted user agreements

Introduction

This endpoint is used for getting the accepted user agreements.

URI

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

Requirements

Identity Scope
Yes /external/me/r

Curl Example

curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/me/accepted_user_agreements \
  --header 'accept: application/json' \
  --header 'authorization: Bearer token' \

Response

HTTP 200
{
    "items": [
      {
        "id": "5dd694826e9552d84448a620",
        "account_id": "5dd694826e9552d84448a608",
        "user_agreement_id": "5dd694826e9552d84448a61f",
        "accepted_at": "2019-11-21T14:43:30+01:00"
      },
      {
        "id": "5dd694826e9552d84448a621",
        "account_id": "5dd694826e9552d84448a609",
        "user_agreement_id": "5dd694826e9552d84448a61g",
        "accepted_at": "2019-11-22T16:43:30+01:00"
      }
    ]
}

Errors

Example error response

HTTP 400 Bad Request
{
    "code": "invalid_parameter",
    "field": "account_id",
    "message": "Parameter must match format (/^[a-f\d]{24}$/)"
}

HTTP 400 Bad Request

Name Type Description
unknown_parameter Object One or more of the fields in the posted json was not recognized

HTTP 404 Not Found

Name Type Description
not_found Object The account could not be found

HTTP 500 Internal Server Error

Name Type Description
internal_server_error Object Something unexpected happened server side