API Reference
post

/subscriptions/v1/card

Create a subscription with a token provided by Kushki which represents the customer’s credit card.

Request Parameters

2 Headers

Request Body

1 Example
Schema
object
token
string
required
example: AbCDef123456Z7Ghi8901234jkLMNopQ
planName
string
required
example: Premium
periodicity
string
required
Allowed Values: daily, weekly, biweekly, monthly, quarterly, halfYearly, yearly, custom
example: monthly
contactDetails
object
required
firstName
string
1 validation + required
lastName
string
1 validation + required
email
string
1 validation + required
amount
object
required
$schema: http://json-schema.org/draft-04/schema#
id: Amount
currency
string
2 validations
subtotalIva
number
1 validation + required
subtotalIva0
number
1 validation + required
iva
number
1 validation + required
ice
number
1 validation
extraTaxes
object
startDate
string

YYYY-MM-DD

Note: Use future date

required
format: date
example: 20180929
language
string
Allowed Values: es, en
metadata
object
key0
string
1 validation
key1
string
1 validation
key2
string
1 validation

Responses

Created

Schema
object
subscriptionId
string
required
example: 0000000000017881

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.