{"id":344,"date":"2024-07-08T13:11:19","date_gmt":"2024-07-08T13:11:19","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=1395"},"modified":"2024-07-08T13:11:19","modified_gmt":"2024-07-08T13:11:19","password":"","slug":"create-payment-method-card-2","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/create-payment-method-card-2\/","title":{"rendered":"Create Payment Method \u2013 Card"},"content":{"rendered":"<h5 style=\"text-align: justify\"><span style=\"font-size: 20px\">Endpoint<\/span><\/h5>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><strong>URL<\/strong>: <div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\">https:\/\/crm-api-test.10npay.com\/api\/v1\/IndividualPaymentMethod\/{individualId}\/card<\/pre>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><br \/>\n<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><strong>Method<\/strong>: <code>POST<\/code><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><strong>Description<\/strong>: Create a new payment method for an individual.<\/span><\/p>\n<h5 style=\"text-align: justify\"><span style=\"font-size: 20px\">Request Headers<\/span><\/h5>\n<ul style=\"text-align: justify\">\n<li><span style=\"font-size: 20px\"><code>accept<\/code>: <code>*\/*<\/code><\/span><\/li>\n<li><span style=\"font-size: 20px\"><code>Authorization<\/code>: <code>Bearer {Token}<\/code><\/span><\/li>\n<li><span style=\"font-size: 20px\"><code>Content-Type<\/code>: <code>application\/json-patch+json<\/code><\/span><\/li>\n<\/ul>\n<h5 style=\"text-align: justify\"><span style=\"font-size: 20px\">Request Parameters<\/span><\/h5>\n<table>\n<thead>\n<tr>\n<th><span style=\"font-size: 20px\">Parameter<\/span><\/th>\n<th><span style=\"font-size: 20px\">Type<\/span><\/th>\n<th><span style=\"font-size: 20px\">Description<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-size: 20px\">cardNumber<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">The card number<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">cardAlias<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Alias for the card<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">cardHolderName<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Card holder&#8217;s name<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">cardType<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Type of the card<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">cvvOrCvcCode<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">CVV or CVC code<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">validityMonth<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Validity month of the card<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">validityYear<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Validity year of the card<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">status<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Status of the card<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">currency<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Currency type<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">cardToken<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Token associated with the card<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"text-align: justify\"><span style=\"font-size: 20px\">Example Request Payload<\/span><\/h4>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\"><span style=\"font-size: 20px\">{\r\n\t\"cardNumber\": \"4341792000000044\",\r\n\t\"cardAlias\": \"p\",\r\n\t\"cardHolderName\": \"Ivailo Petkov\",\r\n\t\"cardType\": \"VISA\",\r\n\t\"cvvOrCvcCode\": \"123\",\r\n\t\"validityMonth\": \"04\",\r\n\t\"validityYear\": \"25\",\r\n\t\"status\": \"2\",\r\n\t\"currency\": \"BGN\",\r\n\t\"cardToken\": \"111111\"\r\n}<\/span><\/pre>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><\/span><\/p>\n<h4 style=\"text-align: justify\"><span style=\"font-size: 20px\">URL Example<\/span><\/h4>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\"><span style=\"font-size: 20px\">curl -X 'POST' \\ 'https:\/\/crm-api-test.10npay.com\/api\/v1\/IndividualPaymentMethod\/740\/card' \\ -H 'accept: *\/*' \\ -H 'Authorization: Bearer {Token}' \\ -H 'Content-Type: application\/json-patch+json' \\ -d '{ \"cardNumber\": \"4341792000000044\", \"cardAlias\": \"p\", \"cardHolderName\": \"Ivailo Petkov\", \"cardType\": \"VISA\", \"cvvOrCvcCode\": \"123\", \"validityMonth\": \"04\", \"validityYear\": \"25\", \"status\": \"2\", \"currency\": \"BGN\", \"cardToken\": \"111111\" }'<\/span><\/pre>\n<p style=\"text-align: justify\"><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><\/span><\/p>\n<h5 style=\"text-align: justify\"><span style=\"font-size: 20px\">Responses<\/span><\/h5>\n<h6 style=\"text-align: justify\"><span style=\"font-size: 20px\">Success<\/span><\/h6>\n<ul style=\"text-align: justify\">\n<li><span style=\"font-size: 20px\"><strong>Status Code<\/strong>: <code>200<\/code><\/span><\/li>\n<li><span style=\"font-size: 20px\"><strong>Description<\/strong>: Payment method created successfully.<\/span><\/li>\n<\/ul>\n<h6 style=\"text-align: justify\"><span style=\"font-size: 20px\">Error: Bad Request<\/span><\/h6>\n<ul style=\"text-align: justify\">\n<li><span style=\"font-size: 20px\"><strong>Status Code<\/strong>: <code>400<\/code><\/span><\/li>\n<li><span style=\"font-size: 20px\"><strong>Description<\/strong>: Payment method can&#8217;t be created.<\/span><\/li>\n<li><span style=\"font-size: 20px\"><strong>Response Schema<\/strong>:<\/span><\/li>\n<\/ul>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\" style=\"text-align: justify\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\">\n<p><span style=\"font-size: 20px\"><div class=\"dm-code-snippet dark default  dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-php\"><\/span><\/p>\n<pre class=\"dm-pre-admin-side\"><span style=\"font-size: 20px\">{\r\n\t\"type\": \"string\",\r\n\t\"title\": \"string\",\r\n\t\"status\": 400,\r\n\t\"detail\": \"string\",\r\n\t\"instance\": \"string\"\r\n}<\/span><\/pre>\n<p><span style=\"font-size: 20px\"><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div><\/span><\/p>\n<\/div>\n<div dir=\"ltr\"><\/div>\n<\/div>\n<table>\n<thead>\n<tr>\n<th><span style=\"font-size: 20px\">Field<\/span><\/th>\n<th><span style=\"font-size: 20px\">Type<\/span><\/th>\n<th><span style=\"font-size: 20px\">Description<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-size: 20px\">type<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Type of the error<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">title<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Title of the error<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">status<\/span><\/td>\n<td><span style=\"font-size: 20px\">integer<\/span><\/td>\n<td><span style=\"font-size: 20px\">HTTP status code<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">detail<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Detailed error message<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 20px\">instance<\/span><\/td>\n<td><span style=\"font-size: 20px\">string<\/span><\/td>\n<td><span style=\"font-size: 20px\">Instance identifier of the error<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6 style=\"text-align: justify\"><span style=\"font-size: 20px\">Error: Not Found<\/span><\/h6>\n<ul style=\"text-align: justify\">\n<li><span style=\"font-size: 20px\"><strong>Status Code<\/strong>: <code>404<\/code><\/span><\/li>\n<li><span style=\"font-size: 20px\"><strong>Description<\/strong>: Request property mismatched or not found.<\/span><\/li>\n<\/ul>\n<h6 style=\"text-align: justify\"><span style=\"font-size: 20px\">Error: Server Error<\/span><\/h6>\n<ul>\n<li style=\"text-align: justify\"><span style=\"font-size: 20px\"><strong>Status Code<\/strong>: <code>500<\/code><\/span><\/li>\n<li style=\"text-align: justify\"><span style=\"font-size: 20px\"><strong>Description<\/strong>: Internal error occurred.<\/span><\/li>\n<\/ul>\n<h5><span style=\"font-size: 20px\">Snippet<\/span><\/h5>\n<p>[codesnippet id=&#8221;66&#8243;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Endpoint URL: Method: POST Description: Create a new payment method for an individual. Request Headers accept: *\/* Authorization: Bearer {Token} Content-Type: application\/json-patch+json Request Parameters Parameter Type Description cardNumber string The card number cardAlias string Alias for the card cardHolderName string Card holder&#8217;s name cardType string Type of the card cvvOrCvcCode string CVV or CVC code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[51],"doc_tag":[],"knowledge_base":[33],"class_list":["post-344","docs","type-docs","status-publish","hentry","doc_category-application-payment-methods","knowledge_base-10npay"],"year_month":"2026-05","word_count":361,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"10npaydev","author_nicename":"10npaydev","author_url":"https:\/\/developers.10npay.com\/bg\/author\/10npaydev\/"},"doc_category_info":[{"term_name":"Application Payment Methods","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/application-payment-methods\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"10npay","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/","term_slug":"10npay"}],"knowledge_base_slug":["10npay"],"_links":{"self":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":0,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/344\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=344"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=344"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}