{"method":"POST","path":"https://api.revcent.com/v2/customers/{customer_id}/add_card","summary":"Add Card To Customer","description":"Add a credit card to an existing customer. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/AddCardToCustomer.md for an in-depth overview of this operation.","operationId":"AddCardToCustomer","parameters":[{"in":"path","name":"customer_id","description":"The customer ID.","required":true,"schema":{"title":"Customer ID","type":"string","description":"A 20 character customer ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bill_to":{"description":"To use as the billing information. If not present the existing customer information will be used.","additionalProperties":false,"properties":{"first_name":{"type":"string","description":"The bill to first name."},"last_name":{"type":"string","description":"The bill to last name."},"address_line_1":{"type":"string","description":"The bill to first address line."},"address_line_2":{"type":"string","description":"The bill to second address line."},"city":{"type":"string","description":"The bill to city."},"state":{"type":"string","description":"The bill to state."},"zip":{"type":"string","description":"The bill to ZIP and or postal code."},"country":{"type":"string","description":"The bill to country in three letter ISO 3166-1 alpha-3 format."},"company":{"type":"string","description":"The bill to company."},"email":{"type":"string","format":"email","description":"The bill to email."},"phone":{"type":"string","description":"The bill to phone."}},"type":"object"},"payment":{"description":"The payment object containing the credit card to add.","additionalProperties":false,"properties":{"credit_card":{"description":"The credit card you wish to create and attach to the customer.","additionalProperties":false,"properties":{"card_number":{"description":"The full credit card number, digits only.","type":"string"},"exp_month":{"description":"The credit card expiration month as a one or two digit integer, i.e. MM.","type":"integer"},"exp_year":{"description":"The credit card expiration year as a two digit integer, i.e. YY.","type":"integer"},"card_code":{"description":"The credit card code as a string, digits only. Depending on the card type this can be different lengths.","type":"string"},"set_as_default":{"type":"boolean","description":"Whether to set the newly added card as the customers default card for payment."}},"type":"object","required":["card_number","exp_month","exp_year"]}},"type":"object","required":["credit_card"]}},"type":"object","required":["payment"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"customer_id":{"title":"Customer ID","type":"string","description":"A 20 character customer ID.","minLength":20,"maxLength":20},"customer_card_id":{"type":"string","description":"A 20 character customer card ID.","minLength":20,"maxLength":20},"result":{"type":"string"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error. Will always be 0.","type":"integer","enum":[0]},"error_code":{"description":"The specific error code.","type":"string"},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIStandardErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}