Admin api customers

Set a card token for a customer

PATCH
/api/admin/v2/customers/{customerId}/card-token

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

customerId*integer

Request Body

application/json

provider*string

Payment provider

Value in"NONE" | "STRIPE" | "PAYTER" | "ADYEN" | "FREEDOM_PAY" | "GENERIC"
cardToken*string

Card token to charge customer

Value in"NONE" | "STRIPE" | "PAYTER" | "ADYEN" | "FREEDOM_PAY" | "GENERIC"

Response Body

application/json

application/json

curl -X PATCH "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/customers/0/card-token" \  -H "Content-Type: application/json" \  -d '{    "provider": "NONE",    "cardToken": "NONE"  }'
{
  "id": 0,
  "externalId": "string",
  "role": "customer",
  "metadata": {
    "arbitraryKey": "arbitraryValue"
  },
  "priority": 0,
  "email": "user@example.com",
  "firstName": "string",
  "lastName": "string",
  "phone": "string"
}
Empty
Empty
{
  "message": "Invalid request body",
  "type": "E_INVALID_BODY",
  "errors": [
    {
      "error": "\"email\" is required",
      "rule": "any.required",
      "field": "\"email\""
    }
  ]
}

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.