Body Required

  • name string
  • address string
  • city string
  • state string
  • country string
  • zip string
  • cc string
  • cc_exp string
  • cc_ccv2 string

Body Required

  • name string
  • address string
  • city string
  • state string
  • country string
  • zip string
  • cc string
  • cc_exp string
  • cc_ccv2 string

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • success boolean Required

      Indicates whether or not the command was successful or not.

    • text string

      Text associated with the response.

    • action string

      Optional Action relating to the response.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
POST /account/creditcards
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"
}