---
updatedAt: 2025-06-04T21:35:41.000Z
agentTools:
  projectIndex: https://documentation.paysimple.com/llms.txt
---

# New Credit Card

Creates a new Credit Card Account object for the specified customer.

> 🚧 PCI Compliance Warning
>
> Any time cardholder data passes through your server, it can increase your PCI Compliance burden. Consider utilizing a [PaySimple checkout form](https://documentation.paysimple.com/docs/paysimplejs-getting-started) if it fits your use case.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "paysimple-api-40-do-not-delete",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.paysimple.com/v4"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/account/creditcard": {
      "post": {
        "summary": "New Credit Card",
        "description": "Creates a new Credit Card Account object for the specified customer.",
        "operationId": "new-credit-card",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "CustomerId": {
                    "type": "integer",
                    "description": "Required. The unique identifier of the Customer to add the new card.",
                    "format": "int32"
                  },
                  "CreditCardNumber": {
                    "type": "string",
                    "description": "Required.  15, 16 or 19 digits"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "description": "Required. A valid date in the format of mm/yyyy"
                  },
                  "Issuer": {
                    "type": "string",
                    "description": "Required. Valid values: `Visa`, `Master` (MasterCard), `Amex` (American Express), `Discover`"
                  },
                  "IsDefault": {
                    "type": "boolean",
                    "description": "Optional. `true` sets the card as the default Credit Card Account for the Customer.  If there are no other cards attached to the Customer, the new card will be set as default.",
                    "default": true
                  },
                  "BillingZipCode": {
                    "type": "string",
                    "description": "Optional.  Max 10 characters. If not provided, the Billing Zip Code of the Customer will be used when processing a payment."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n    \"CreditCardNumber\": \"************1111\",\n    \"ExpirationDate\": \"12/2033\",\n    \"Issuer\": \"Visa\",\n    \"BillingZipCode\": \"80202\",\n    \"CustomerId\": 9695143,\n    \"IsDefault\": true,\n    \"RequiresValidation\": false,\n    \"Id\": 8989970,  // Unique Id of the Account\n    \"LastModified\": \"2018-01-11T23:04:58.8330513Z\",\n    \"CreatedOn\": \"2018-01-10T20:29:03Z\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "CreditCardNumber": {
                      "type": "string",
                      "example": "************1111"
                    },
                    "ExpirationDate": {
                      "type": "string",
                      "example": "12/2033"
                    },
                    "Issuer": {
                      "type": "string",
                      "example": "Visa"
                    },
                    "BillingZipCode": {
                      "type": "string",
                      "example": "80202"
                    },
                    "CustomerId": {
                      "type": "integer",
                      "example": 9695143,
                      "default": 0
                    },
                    "IsDefault": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "RequiresValidation": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "Id": {
                      "type": "integer",
                      "example": 8989970,
                      "default": 0
                    },
                    "LastModified": {
                      "type": "string",
                      "example": "2018-01-11T23:04:58.8330513Z"
                    },
                    "CreatedOn": {
                      "type": "string",
                      "example": "2018-01-10T20:29:03Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"Meta\": {\n    \"Errors\": {\n      \"ErrorCode\": \"InvalidInput\",\n      \"ErrorMessages\": [\n        {\n          \"Field\": \"\",\n          \"Message\": \"Customer id 8989970 does not exist\"\n        }\n      ]\n    },\n    \"HttpStatus\": \"BadRequest\",\n    \"HttpStatusCode\": 400,\n    \"PagingDetails\": null\n  },\n  \"Response\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Meta": {
                      "type": "object",
                      "properties": {
                        "Errors": {
                          "type": "object",
                          "properties": {
                            "ErrorCode": {
                              "type": "string",
                              "example": "InvalidInput"
                            },
                            "ErrorMessages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "Field": {
                                    "type": "string",
                                    "example": ""
                                  },
                                  "Message": {
                                    "type": "string",
                                    "example": "Customer id 8989970 does not exist"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "HttpStatus": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "HttpStatusCode": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "PagingDetails": {}
                      }
                    },
                    "Response": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```