Admin api customers
Add a new card to customer
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
customerId*integer
Request Body
application/json
provider*string
Value in
"NONE" | "STRIPE" | "PAYTER" | "ADYEN" | "FREEDOM_PAY" | "GENERIC"underlyingPaymentProvider?string
To identify the real payment provider when provider is GENERIC
defaultCard?string
Whether it's the default card
Default
falsecardBrand?string
Allow retailer to specify card brand, the length of this field should be less than or equal to 30. if this value is unknown or not specified, empty string will be included in webhooks
Length
length <= 30cardToken*string
Card token to charge customer
cardId*string
Unique id of the card. as apposed to cardToken, it should be the same (for a physical card) upon every tokenization
Response Body
application/json
application/json
curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/customers/0/card" \ -H "Content-Type: application/json" \ -d '{ "provider": "NONE", "cardToken": "string", "cardId": "string" }'{
"id": 0
}Empty
Empty
Empty
{
"message": "Invalid request body",
"type": "E_INVALID_BODY",
"errors": [
{
"error": "\"email\" is required",
"rule": "any.required",
"field": "\"email\""
}
]
}How is this guide?