Skip to content

Create or update identity mapping

/identity_mapping

Target audience: Developers

Create or update identity mapping

Introduction

This endpoint creates or updates the identity mapping on a given account.

URI

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

Requirements

Identity Scope
No /external/identity_mapping/w

Parameters

Field Required Type Description
account_id Required String The account ID that should be fetched and modified.
Size range: ..24
Allowed values: "/^[a-f\d]{24}$/i"
identity_key Required String The key of the identity mapping that should be set.
Size range: ..128
value Required String The value of the identity mapping that should be set.
Size range: ..128

Curl Example

curl --request POST \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/identity_mapping \
  --header 'accept: application/json' \
  --header 'authorization: Bearer token' \
  --header 'content-type: application/json' \
  --data '{
    "account_id": "AFDIADFJOADFA134",
    "identity_key": "Adeprimo Integration Service",
    "value": "ABC12345"
  }'
}'

Errors

This API uses the common error conventions of the Payway API

See common error responses