{"_id":"595c4f7544c566001be37b99","project":"55c8cff571d7580d0063a5e5","version":{"_id":"57624356653c2d2200fec79c","__v":21,"project":"55c8cff571d7580d0063a5e5","createdAt":"2016-06-16T06:12:38.244Z","releaseDate":"2016-06-16T06:12:38.244Z","categories":["57624356653c2d2200fec79d","57624356653c2d2200fec79e","57624356653c2d2200fec79f","57624356653c2d2200fec7a0","57624356653c2d2200fec7a1","57624356653c2d2200fec7a2","57624356653c2d2200fec7a3","57624356653c2d2200fec7a4","57624356653c2d2200fec7a5","57624356653c2d2200fec7a6","57624356653c2d2200fec7a7","57624356653c2d2200fec7a8","57624356653c2d2200fec7a9","57624356653c2d2200fec7aa","5779ca1b99b40b0e005abb3a","5779d198aea88b0e00f63277","5797d3ab17ced017003c4be4","57ac170ef1cdae0e0053cdfc","57dbfc723ed3450e00dc9e6d","5804d12d16161c0f0077df9b","5841064b652e5b0f0015a7c8","588b5e5f2966b2230009cbf9","58a68ebf3239fa0f00857619","58c23c8b4922930f0050ac91","58fd1460809fc30f00f2ee07","5934eaf5328680002d77de6a","594bf91601cfe6000f40f4c5","595c4ed696b447001ba0cf6d","596524495cee50001575f5be","5970d4f1313162004dd303b5","59780fac24dbd1001a1fa057","59a8cfd3ead78a002d63cafe","59e0323d93da1f001c9ec170","5b0c16f2be9fcb0003e28222"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"4.0.0","version":"4"},"category":{"_id":"595c4ed696b447001ba0cf6d","project":"55c8cff571d7580d0063a5e5","version":"57624356653c2d2200fec79c","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-07-05T02:28:38.776Z","from_sync":false,"order":21,"slug":"account-oauth-access-tokens","title":"Account Payment Methods"},"user":"56f99ab84d2b4f3400edb636","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-05T02:31:17.796Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Phone.com accepts credit card payment, and the Account Payment Methods API allows users to add, list, get, update and delete a credit card payment method.\n\n## Supported Services\n* [List Account Payment Methods](doc:list-account-payment-methods) \n* [Get Account Payment Method](doc:get-account-payment-method) \n* [Create Account Payment Method](doc:create-account-payment-method)\n* [Patch Account Payment Method](doc:patch-account-payment-method) \n* [Delete Account Payment Method](doc:delete-account-payment-method) \n\n## Summary Object\nThe Payment Method Summary Object is used to briefly represent a Credit Card. It consists of parameters in the table below:\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`id`\",\n    \"0-1\": \"Integer\",\n    \"1-0\": \"`voip_id`\",\n    \"2-0\": \"`status`\",\n    \"3-0\": \"`nickname`\",\n    \"4-0\": \"`type`\",\n    \"5-0\": \"`created_at`\",\n    \"1-1\": \"Integer\",\n    \"2-1\": \"String\",\n    \"3-1\": \"String\",\n    \"4-1\": \"String\",\n    \"5-1\": \"Integer\",\n    \"0-2\": \"Payment Method ID\",\n    \"1-2\": \"API Account ID\",\n    \"2-2\": \"'primary' = primary card used for billing\\n'onfile' = card on file\\n'hidden' = deleted card\",\n    \"3-2\": \"Name of Card\",\n    \"4-2\": \"'cc' for credit card\",\n    \"5-2\": \"Time payment record is created\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]\nHere is an example:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"id\\\": 460302,\\n    \\\"voip_id\\\": 349034,\\n    \\\"status\\\": \\\"primary\\\",\\n    \\\"nickname\\\": \\\"My Visa Card\\\",\\n    \\\"type\\\": \\\"cc\\\",\\n    \\\"created_at\\\": 1498786937\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n## Full Object\n\nThe Payment Method Full Object contains the same properties as the [Payment Method Summary Object](#section-summary-object), along with the following:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`contact`\",\n    \"1-0\": \"`decline_count`\",\n    \"2-0\": \"`next_charge_date`\",\n    \"3-0\": \"`updated_at`\",\n    \"6-0\": \"`cc_exp`\",\n    \"7-0\": \"`cc_token`\",\n    \"8-0\": \"`ec_aba_number`\",\n    \"9-0\": \"`ec_dda_number`\",\n    \"10-0\": \"`ec_dmv_number`\",\n    \"11-0\": \"`ec_dmv_state`\",\n    \"12-0\": \"`ec_birth_date`\",\n    \"13-0\": \"`updated_at`\",\n    \"14-0\": \"`status_date`\",\n    \"15-0\": \"`aus_status`\",\n    \"16-0\": \"`aus_status_date`\",\n    \"0-1\": \"Contact Object\",\n    \"1-1\": \"Integer\",\n    \"2-1\": \"Integer\",\n    \"8-1\": \"String\",\n    \"9-1\": \"String\",\n    \"10-1\": \"String\",\n    \"11-1\": \"String\",\n    \"7-1\": \"String\",\n    \"6-1\": \"String\",\n    \"3-1\": \"Integer\",\n    \"12-1\": \"Integer\",\n    \"13-1\": \"Integer\",\n    \"14-1\": \"Integer\",\n    \"15-1\": \"ENUM\",\n    \"16-1\": \"Integer\",\n    \"5-0\": \"`cc_number`\",\n    \"4-0\": \"`cc_token`\",\n    \"4-1\": \"String\",\n    \"5-1\": \"String\",\n    \"0-2\": \"Detail of contact person\",\n    \"1-2\": \"Number of times the payment method was declined\",\n    \"2-2\": \"Next billing date\",\n    \"3-2\": \"Last time the payment method was updated\",\n    \"4-2\": \"Encrypted credit card token to be used for billing\",\n    \"5-2\": \"Credit card number partially masked with xxxxxxxx\",\n    \"6-2\": \"Credit card expiration date\"\n  },\n  \"cols\": 3,\n  \"rows\": 7\n}\n[/block]\n## Contact Object\n\nThe Contact Object includes detailed properties of the contact person:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property\",\n    \"h-1\": \"Type\",\n    \"0-0\": \"`name`\",\n    \"0-1\": \"String\",\n    \"1-0\": \"`company`\",\n    \"1-1\": \"String\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Name of contact person\",\n    \"1-2\": \"Name of company\",\n    \"2-0\": \"`address`\",\n    \"2-1\": \"Address Object\",\n    \"2-2\": \"Details of address\",\n    \"3-0\": \"`phone`\",\n    \"3-1\": \"String\",\n    \"3-2\": \"Phone number of contact person\",\n    \"4-0\": \"`fax`\",\n    \"4-1\": \"String\",\n    \"4-2\": \"Fax number of contact person\",\n    \"5-0\": \"`primary_email`\",\n    \"6-0\": \"`alternate_email`\",\n    \"5-1\": \"String\",\n    \"6-1\": \"String\",\n    \"5-2\": \"Primary email address\",\n    \"6-2\": \"Alternate email address\"\n  },\n  \"cols\": 3,\n  \"rows\": 7\n}\n[/block]\n## Address Object\n\nThe Address Object includes detailed properties of the contact person's address:\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`line_1`\",\n    \"1-0\": \"`line_2`\",\n    \"2-0\": \"`city`\",\n    \"3-0\": \"`province`\",\n    \"4-0\": \"`postal_code`\",\n    \"5-0\": \"`country`\",\n    \"0-1\": \"String\",\n    \"1-1\": \"String\",\n    \"2-1\": \"String\",\n    \"3-1\": \"String\",\n    \"4-1\": \"String\",\n    \"5-1\": \"String\",\n    \"0-2\": \"Line 1 of address\",\n    \"1-2\": \"Line 2 of address\",\n    \"2-2\": \"City of address\",\n    \"3-2\": \"Province of address\",\n    \"4-2\": \"zip code of address\",\n    \"5-2\": \"Country of address\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]\nHere is an example of the Payment Method Full Object:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"id\\\": 460302,\\n    \\\"voip_id\\\": 349034,\\n    \\\"status\\\": \\\"primary\\\",\\n    \\\"nickname\\\": \\\"\\\",\\n    \\\"type\\\": \\\"cc\\\",\\n    \\\"created_at\\\": 1498786937,\\n    \\\"contact\\\": {\\n        \\\"name\\\": \\\"My Visa Card\\\",\\n        \\\"company\\\": \\\"Phone.com\\\",\\n        \\\"address\\\": {\\n            \\\"line_1\\\": \\\"18 Thatcher Road\\\",\\n            \\\"line_2\\\": null,\\n            \\\"city\\\": null,\\n            \\\"province\\\": null,\\n            \\\"postal_code\\\": \\\"07670\\\",\\n            \\\"country\\\": \\\"USA\\\"\\n        },\\n        \\\"phone\\\": null,\\n        \\\"fax\\\": null,\\n        \\\"primary_email\\\": \\\"acohen:::at:::phone.com\\\",\\n        \\\"alternate_email\\\": null\\n    },\\n    \\\"decline_count\\\": 0,\\n    \\\"next_charge_date\\\": 0,\\n    \\\"updated_at\\\": 1498787048,\\n    \\\"cc_token\\\": \\\"52d1234579874afe885abcdef95bf2be\\\",\\n    \\\"cc_number\\\": \\\"379768xxxxxx2028\\\",\\n    \\\"cc_exp\\\": \\\"0123\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"account-payment-methods","type":"basic","title":"Payment Methods"}
Phone.com accepts credit card payment, and the Account Payment Methods API allows users to add, list, get, update and delete a credit card payment method. ## Supported Services * [List Account Payment Methods](doc:list-account-payment-methods) * [Get Account Payment Method](doc:get-account-payment-method) * [Create Account Payment Method](doc:create-account-payment-method) * [Patch Account Payment Method](doc:patch-account-payment-method) * [Delete Account Payment Method](doc:delete-account-payment-method) ## Summary Object The Payment Method Summary Object is used to briefly represent a Credit Card. It consists of parameters in the table below: [block:parameters] { "data": { "0-0": "`id`", "0-1": "Integer", "1-0": "`voip_id`", "2-0": "`status`", "3-0": "`nickname`", "4-0": "`type`", "5-0": "`created_at`", "1-1": "Integer", "2-1": "String", "3-1": "String", "4-1": "String", "5-1": "Integer", "0-2": "Payment Method ID", "1-2": "API Account ID", "2-2": "'primary' = primary card used for billing\n'onfile' = card on file\n'hidden' = deleted card", "3-2": "Name of Card", "4-2": "'cc' for credit card", "5-2": "Time payment record is created" }, "cols": 3, "rows": 6 } [/block] Here is an example: [block:code] { "codes": [ { "code": "{\n \"id\": 460302,\n \"voip_id\": 349034,\n \"status\": \"primary\",\n \"nickname\": \"My Visa Card\",\n \"type\": \"cc\",\n \"created_at\": 1498786937\n}", "language": "json" } ] } [/block] ## Full Object The Payment Method Full Object contains the same properties as the [Payment Method Summary Object](#section-summary-object), along with the following: [block:parameters] { "data": { "h-0": "Property", "h-1": "Type", "h-2": "Description", "0-0": "`contact`", "1-0": "`decline_count`", "2-0": "`next_charge_date`", "3-0": "`updated_at`", "6-0": "`cc_exp`", "7-0": "`cc_token`", "8-0": "`ec_aba_number`", "9-0": "`ec_dda_number`", "10-0": "`ec_dmv_number`", "11-0": "`ec_dmv_state`", "12-0": "`ec_birth_date`", "13-0": "`updated_at`", "14-0": "`status_date`", "15-0": "`aus_status`", "16-0": "`aus_status_date`", "0-1": "Contact Object", "1-1": "Integer", "2-1": "Integer", "8-1": "String", "9-1": "String", "10-1": "String", "11-1": "String", "7-1": "String", "6-1": "String", "3-1": "Integer", "12-1": "Integer", "13-1": "Integer", "14-1": "Integer", "15-1": "ENUM", "16-1": "Integer", "5-0": "`cc_number`", "4-0": "`cc_token`", "4-1": "String", "5-1": "String", "0-2": "Detail of contact person", "1-2": "Number of times the payment method was declined", "2-2": "Next billing date", "3-2": "Last time the payment method was updated", "4-2": "Encrypted credit card token to be used for billing", "5-2": "Credit card number partially masked with xxxxxxxx", "6-2": "Credit card expiration date" }, "cols": 3, "rows": 7 } [/block] ## Contact Object The Contact Object includes detailed properties of the contact person: [block:parameters] { "data": { "h-0": "Property", "h-1": "Type", "0-0": "`name`", "0-1": "String", "1-0": "`company`", "1-1": "String", "h-2": "Description", "0-2": "Name of contact person", "1-2": "Name of company", "2-0": "`address`", "2-1": "Address Object", "2-2": "Details of address", "3-0": "`phone`", "3-1": "String", "3-2": "Phone number of contact person", "4-0": "`fax`", "4-1": "String", "4-2": "Fax number of contact person", "5-0": "`primary_email`", "6-0": "`alternate_email`", "5-1": "String", "6-1": "String", "5-2": "Primary email address", "6-2": "Alternate email address" }, "cols": 3, "rows": 7 } [/block] ## Address Object The Address Object includes detailed properties of the contact person's address: [block:parameters] { "data": { "0-0": "`line_1`", "1-0": "`line_2`", "2-0": "`city`", "3-0": "`province`", "4-0": "`postal_code`", "5-0": "`country`", "0-1": "String", "1-1": "String", "2-1": "String", "3-1": "String", "4-1": "String", "5-1": "String", "0-2": "Line 1 of address", "1-2": "Line 2 of address", "2-2": "City of address", "3-2": "Province of address", "4-2": "zip code of address", "5-2": "Country of address" }, "cols": 3, "rows": 6 } [/block] Here is an example of the Payment Method Full Object: [block:code] { "codes": [ { "code": "{\n \"id\": 460302,\n \"voip_id\": 349034,\n \"status\": \"primary\",\n \"nickname\": \"\",\n \"type\": \"cc\",\n \"created_at\": 1498786937,\n \"contact\": {\n \"name\": \"My Visa Card\",\n \"company\": \"Phone.com\",\n \"address\": {\n \"line_1\": \"18 Thatcher Road\",\n \"line_2\": null,\n \"city\": null,\n \"province\": null,\n \"postal_code\": \"07670\",\n \"country\": \"USA\"\n },\n \"phone\": null,\n \"fax\": null,\n \"primary_email\": \"acohen@phone.com\",\n \"alternate_email\": null\n },\n \"decline_count\": 0,\n \"next_charge_date\": 0,\n \"updated_at\": 1498787048,\n \"cc_token\": \"52d1234579874afe885abcdef95bf2be\",\n \"cc_number\": \"379768xxxxxx2028\",\n \"cc_exp\": \"0123\"\n}", "language": "json" } ] } [/block]