POST
/account/creditcards
cURL (application/json)
curl \
--request POST 'https://my.interserver.net/apiv2/account/creditcards' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"cc":"1234556781923121","zip":"07013","city":"Secaucus","name":"John Doe","state":"NJ","cc_exp":"12/2023","address":"1 Somewhere St.","cc_ccv2":"123","country":"US"}'
curl \
--request POST 'https://my.interserver.net/apiv2/account/creditcards' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "cc=1234556781923121" \
--form "zip=07013" \
--form "city=Secaucus" \
--form "name=John Doe" \
--form "state=NJ" \
--form "cc_exp=12/2023" \
--form "address=1 Somewhere St." \
--form "cc_ccv2=123" \
--form "country=US"
Request examples
{
"cc": "1234556781923121",
"zip": "07013",
"city": "Secaucus",
"name": "John Doe",
"state": "NJ",
"cc_exp": "12/2023",
"address": "1 Somewhere St.",
"cc_ccv2": "123",
"country": "US"
}
Response examples (200)
{
"text": "Ok",
"success": true
}
Response examples (401)
{
"code": "string",
"message": "string"
}