Skip to content

Attach payment card token to member

Request

Use this endpoint for adding a card token to an existing member.

This method requires an integration with a payment provider.

Security
api_key
Bodyapplication/json
memberIdstringrequired

The members Id

Example:"15BE85AB-CD61-4A23-8C22-0981AD35DBD1S2010"
tokenstringrequired

Card token to add to members list of payment cards

Example:"2A9ACDD0-9113-4EF4-8EA9-FD343E040EE9"
curl -i -X POST \
  https://api.oculos.no/v4/payment-cards \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "memberId": "15BE85AB-CD61-4A23-8C22-0981AD35DBD1S2010",
    "token": "2A9ACDD0-9113-4EF4-8EA9-FD343E040EE9"
  }'

Responses

OK