{"openapi":"3.0.0","info":{"title":"OVHcloud API specification","description":"Specification for OVHcloud API","version":"1.0","contact":{"name":"OVH","email":"api@ml.ovh.net"}},"servers":[{"url":"https://api.eu.ovhcloud.com/1.0"}],"components":{"schemas":{"any":{"description":"Can be anything (text, int, bool, json, html, etc.)","example":"This is a content of any type !"},"duration":{"type":"string","description":"Duration (e.g., P1Y2M3DT4H6M9S)","example":"P1Y2M3DT4H6M9S"},"email":{"type":"string","description":"Email address (e.g., api@ml.ovh.net)","format":"email","example":"api@ml.ovh.net"},"internationalPhoneNumber":{"type":"string","description":"International phone number","format":"phone-number"},"ip":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipBlock":{"type":"string","description":"IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)","format":"ip-block","example":"192.0.2.0/24"},"ipInterface":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4":{"type":"string","description":"IPv4 address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4Block":{"type":"string","description":"IPv4 CIDR notation (e.g., 192.0.2.0/24)","format":"ipv4-block","example":"192.0.2.0/24"},"ipv6":{"type":"string","description":"IPv6 address (e.g., 2001:41d0:1:1994::1)","format":"ipv6","example":"2001:41d0:1:1994::1"},"ipv6Block":{"type":"string","description":"IPv6 CIDR notation (e.g., 2001:41d0::/128)","format":"ipv6-block","example":"2001:41d0::/128"},"macAddress":{"type":"string","description":"MAC address (e.g., 00:00:5e:00:53:01)","format":"mac-address","example":"00:00:5e:00:53:01"},"me.payment.AvailablePaymentMethod":{"type":"object","description":"Available payment method object","properties":{"formSessionId":{"type":"string","description":"Form session ID","nullable":true,"readOnly":true},"icon":{"allOf":[{"$ref":"#/components/schemas/me.payment.Icon"}],"description":"Payment method type icon","readOnly":true},"integration":{"allOf":[{"$ref":"#/components/schemas/me.payment.IntegrationEnum"}],"description":"Payment method integration type","readOnly":true},"merchantId":{"type":"string","description":"Merchant ID","nullable":true,"readOnly":true},"oneshot":{"type":"boolean","description":"Indicates if payment method type allows to process oneshot payment","readOnly":true},"organizationId":{"type":"string","description":"Organization ID","nullable":true,"readOnly":true},"paymentSubType":{"allOf":[{"$ref":"#/components/schemas/me.payment.AvailableSubTypeEnum"}],"description":"Payment method sub-type","nullable":true,"readOnly":true},"paymentType":{"type":"string","description":"Payment method type","readOnly":true},"registerable":{"type":"boolean","description":"Indicates if payment method type is registerable ?","readOnly":true},"registerableWithTransaction":{"type":"boolean","description":"Indicates if payment method type allows payment and registration at the same time","readOnly":true}}},"me.payment.AvailableSubTypeEnum":{"type":"string","description":"Payment method available sub-type enum","enum":["30_DAYS","45_DAYS","60_DAYS","AMERICAN_EXPRESS","AURA","CARTE_BANCAIRE","CARTE_BLEUE","CHORUS","DINERS_CLUB","DISCOVER","JCB","MAESTRO","MASTERCARD","NONE","RUPAY","VISA"]},"me.payment.CreationSubTypeEnum":{"type":"string","description":"Payment method creation sub-type enum","enum":["CHORUS","NONE"]},"me.payment.Icon":{"type":"object","description":"Icon","properties":{"data":{"type":"string","description":"Icon in base64","nullable":true,"readOnly":true},"name":{"type":"string","description":"Icon name","readOnly":true},"url":{"type":"string","description":"Icon URL","nullable":true,"readOnly":true}}},"me.payment.IntegrationEnum":{"type":"string","description":"Register integration type enum","enum":["BANK_TRANSFER","COMPONENT","IFRAME_VANTIV","IN_CONTEXT","NONE","OSP","POST_FORM","REDIRECT"]},"me.payment.PaymentMethod":{"type":"object","description":"Payment method object","properties":{"billingContactId":{"type":"integer","description":"Associated billing contact ID","nullable":true,"readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"default":{"type":"boolean","description":"Indicates if payment method is the default one for this account"},"description":{"type":"string","description":"Custom customer description","nullable":true},"expirationDate":{"type":"string","description":"Expiration date","nullable":true,"format":"date-time","readOnly":true},"formSessionId":{"type":"string","description":"Form session ID","nullable":true,"readOnly":true},"icon":{"allOf":[{"$ref":"#/components/schemas/me.payment.Icon"}],"description":"Payment method type icon","readOnly":true},"integration":{"allOf":[{"$ref":"#/components/schemas/me.payment.IntegrationEnum"}],"description":"Payment method integration type","nullable":true,"readOnly":true},"label":{"type":"string","description":"Payment method public label","nullable":true,"readOnly":true},"lastUpdate":{"type":"string","description":"Last update date","format":"date-time","readOnly":true},"merchantId":{"type":"string","description":"Merchant ID","nullable":true,"readOnly":true},"oneclick":{"type":"boolean","description":"Indicates if payment method support the oneclick functionality","nullable":true,"readOnly":true},"paymentMeanId":{"type":"integer","description":"Payment mean ID associated to this payment method","nullable":true,"readOnly":true},"paymentMethodId":{"type":"integer","description":"Payment method ID","readOnly":true},"paymentSubType":{"allOf":[{"$ref":"#/components/schemas/me.payment.AvailableSubTypeEnum"}],"description":"Payment method sub-type","nullable":true,"readOnly":true},"paymentType":{"type":"string","description":"Payment method type","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/me.payment.method.StatusEnum"}],"description":"Payment method status","readOnly":true}}},"me.payment.Transaction":{"type":"object","description":"Transaction object","properties":{"amount":{"allOf":[{"$ref":"#/components/schemas/order.Price"}],"description":"Transaction amount","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"lastUpdate":{"type":"string","description":"Last update date","format":"date-time","readOnly":true},"paymentMethodId":{"type":"integer","description":"Associated payment method ID","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/me.payment.transaction.StatusEnum"}],"description":"Transaction status","readOnly":true},"transactionId":{"type":"integer","description":"Transaction ID","readOnly":true},"type":{"allOf":[{"$ref":"#/components/schemas/me.payment.transaction.TypeEnum"}],"description":"Transaction type","readOnly":true}}},"me.payment.method.CallbackUrl":{"type":"object","description":"Callback URL's to register a new payment method","properties":{"cancel":{"type":"string","description":"URL when customer cancels the action"},"error":{"type":"string","description":"URL when registration encounters an error"},"failure":{"type":"string","description":"URL when registration failed"},"pending":{"type":"string","description":"URL when payment method is in validation"},"success":{"type":"string","description":"URL when payment method registration success"}},"required":["cancel","error","failure","pending","success"]},"me.payment.method.Challenge":{"type":"object","description":"Payment method Challenge","properties":{"challenge":{"type":"string","description":"Challenge"}},"required":["challenge"]},"me.payment.method.Creation":{"type":"object","description":"Payment method creation payload","properties":{"billingContactId":{"type":"integer","description":"Associated billing contact ID","nullable":true},"callbackUrl":{"allOf":[{"$ref":"#/components/schemas/me.payment.method.CallbackUrl"}],"description":"Callback URL's necessary to register"},"default":{"type":"boolean","description":"Indicates if this payment method will be set as the default one"},"description":{"type":"string","description":"Personalized description","nullable":true},"formData":{"type":"string","description":"Additional payment information","nullable":true},"orderId":{"type":"integer","description":"Order ID to pay it if it's possible (in oneshot transaction or while registration)","nullable":true},"paymentSubType":{"allOf":[{"$ref":"#/components/schemas/me.payment.CreationSubTypeEnum"}],"description":"Payment sub-type","nullable":true},"paymentType":{"type":"string","description":"Payment type"},"register":{"type":"boolean","description":"Register this payment method if it's possible (default value is false and will proceed a oneshot transaction)"}},"required":["callbackUrl","paymentType"]},"me.payment.method.Details":{"type":"object","description":"Add details to one payment method challenge","properties":{"details":{"type":"string","description":"Details data"},"transactionId":{"type":"integer","description":"Transaction ID"}}},"me.payment.method.Finalize":{"type":"object","description":"Payload to finalize payment method registration","properties":{"expirationMonth":{"type":"integer","description":"Expiration month","nullable":true},"expirationYear":{"type":"integer","description":"Expiration year","nullable":true},"formSessionId":{"type":"string","description":"Form session ID","nullable":true},"registrationId":{"type":"string","description":"Registration ID","nullable":true}}},"me.payment.method.StatusEnum":{"type":"string","description":"Payment method status","enum":["CANCELED","CANCELING","CREATED","CREATING","ERROR","EXPIRED","FAILED","MAINTENANCE","PAUSED","REJECTED","REPLACED","VALID","VALIDATING"]},"me.payment.method.Validation":{"type":"object","description":"Registration response to validate","properties":{"formSessionId":{"type":"string","description":"Form session ID","nullable":true,"readOnly":true},"merchantId":{"type":"string","description":"Merchant ID","nullable":true,"readOnly":true},"organizationId":{"type":"string","description":"Organization ID","nullable":true,"readOnly":true},"paymentMethodId":{"type":"integer","description":"Registered new payment method ID","readOnly":true},"transactionId":{"type":"integer","description":"Registered new transaction ID","nullable":true,"readOnly":true},"url":{"type":"string","description":"Registration validation URL to redirect","nullable":true,"readOnly":true},"validationType":{"allOf":[{"$ref":"#/components/schemas/me.payment.IntegrationEnum"}],"description":"Registration validation type","readOnly":true}}},"me.payment.transaction.StatusEnum":{"type":"string","description":"Transaction status","enum":["CANCELED","CANCELING","CONFIRMING","ERROR","EXPIRED","FAILED","READY","SUCCESS"]},"me.payment.transaction.TypeEnum":{"type":"string","description":"Transaction type","enum":["CREDIT","DEBIT"]},"me.paymentMean.BankAccount":{"type":"object","description":"Credit card information","properties":{"bic":{"type":"string","readOnly":true},"creationDate":{"type":"string","format":"date","readOnly":true},"defaultPaymentMean":{"type":"boolean","description":"This credit card is the default payment mean?","readOnly":true},"description":{"type":"string","description":"Custom description of this bank account","nullable":true},"iban":{"type":"string","readOnly":true},"icon":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.IconData"}],"description":"Payment method type icon","nullable":true,"readOnly":true},"id":{"type":"integer","readOnly":true},"mandateSignatureDate":{"type":"string","nullable":true,"format":"date","readOnly":true},"ownerAddress":{"type":"string","description":"Bank account owner's address","readOnly":true},"ownerName":{"type":"string","description":"Bank account owner's name","readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.BankAccountStateEnum"}],"description":"Bank account state","readOnly":true},"uniqueReference":{"type":"string","readOnly":true},"validationDocumentLink":{"type":"string","nullable":true,"readOnly":true}}},"me.paymentMean.BankAccountChallengeCreation":{"type":"object","description":"Missing description","properties":{"challenge":{"type":"string","description":"Payload to answer the challenge"}},"required":["challenge"]},"me.paymentMean.BankAccountCreation":{"type":"object","description":"Missing description","properties":{"bic":{"type":"string","description":"Bank account BIC"},"description":{"type":"string","description":"Custom description of this account","nullable":true},"iban":{"type":"string","description":"Bank account IBAN"},"ownerAddress":{"type":"string","description":"Bank account owner's address"},"ownerName":{"type":"string","description":"Bank account owner's name"},"setDefault":{"type":"boolean","description":"Set as default payment mean once validated","nullable":true}},"required":["bic","iban","ownerAddress","ownerName"]},"me.paymentMean.BankAccountStateEnum":{"type":"string","description":"State of your bank account","enum":["blockedForIncidents","pendingValidation","replaced","valid"]},"me.paymentMean.BankAccountValidation":{"type":"object","description":"A validation required to add a payment mean bank account","properties":{"id":{"type":"integer","readOnly":true},"submitUrl":{"type":"string","nullable":true,"readOnly":true},"url":{"type":"string","description":"URL where redirect for registration process","readOnly":true},"validationType":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.ValidationTypeEnum"}],"description":"Kind of registration validation","readOnly":true}}},"me.paymentMean.CreditCard":{"type":"object","description":"Credit card information","properties":{"defaultPaymentMean":{"type":"boolean","description":"This credit card is the default payment mean?","readOnly":true},"description":{"type":"string","description":"Custom description of this credit card","nullable":true},"expirationDate":{"type":"string","format":"date","readOnly":true},"icon":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.IconData"}],"description":"Payment method type icon","nullable":true,"readOnly":true},"id":{"type":"integer","readOnly":true},"number":{"type":"string","description":"Credit card BIN","readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.CreditCardStateEnum"}],"description":"Credit card state","readOnly":true},"threeDsValidated":{"type":"boolean","description":"True if this credit card has been registered with a successful 3DSecure challenge","readOnly":true},"type":{"type":"string","description":"Kind of credit card","readOnly":true}}},"me.paymentMean.CreditCardChallengeCreation":{"type":"object","description":"Missing description","properties":{"challenge":{"type":"string","description":"Payload to answer the challenge"}},"required":["challenge"]},"me.paymentMean.CreditCardCreation":{"type":"object","description":"Missing description","properties":{"description":{"type":"string","description":"Custom description of this account","nullable":true},"returnUrl":{"type":"string","description":"Callback URL where the customer will be redirected to after validation","nullable":true},"setDefault":{"type":"boolean","description":"Set as default payment mean once validated","nullable":true}}},"me.paymentMean.CreditCardStateEnum":{"type":"string","description":"State of your credit card","enum":["expired","tooManyFailures","valid"]},"me.paymentMean.CreditCardValidation":{"type":"object","description":"A validation required to add a payment mean credit card","properties":{"id":{"type":"integer","readOnly":true},"submitUrl":{"type":"string","nullable":true,"readOnly":true},"url":{"type":"string","description":"URL where redirect for registration process","readOnly":true},"validationType":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.ValidationTypeEnum"}],"description":"Kind of registration validation","readOnly":true}}},"me.paymentMean.Deferred":{"type":"object","description":"Deferred account information","properties":{"creationDate":{"type":"string","description":"Creation date of this deferred account","format":"date-time","readOnly":true},"defaultPaymentMean":{"type":"boolean","description":"This deferred account is the default payment mean?","readOnly":true},"description":{"type":"string","description":"Custom description of this deferred account","nullable":true},"icon":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.IconData"}],"description":"Payment method type icon","nullable":true,"readOnly":true},"id":{"type":"integer","readOnly":true},"label":{"type":"string","description":"Deferred account type","nullable":true,"readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.DeferredStateEnum"}],"description":"Deferred account state","readOnly":true}}},"me.paymentMean.DeferredStateEnum":{"type":"string","description":"State of you deferred account","enum":["failed","valid"]},"me.paymentMean.IconData":{"type":"object","description":"Payment mean type icon","properties":{"data":{"type":"string","description":"Icon in base64","nullable":true,"readOnly":true},"name":{"type":"string","description":"Icon name","nullable":true,"readOnly":true},"url":{"type":"string","description":"Icon URL","nullable":true,"readOnly":true}}},"me.paymentMean.Paypal":{"type":"object","description":"Paypal information","properties":{"agreementId":{"type":"string","description":"Paypal agreement","readOnly":true},"creationDate":{"type":"string","description":"Paypal creation date","format":"date-time","readOnly":true},"defaultPaymentMean":{"type":"boolean","description":"This paypal is the default payment mean?","readOnly":true},"description":{"type":"string","description":"Custom description of this paypal","nullable":true},"email":{"type":"string","description":"Paypal associated email","readOnly":true},"icon":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.IconData"}],"description":"Payment method type icon","nullable":true,"readOnly":true},"id":{"type":"integer","readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.PaypalStateEnum"}],"description":"Paypal state","readOnly":true}}},"me.paymentMean.PaypalChallengeCreation":{"type":"object","description":"Missing description","properties":{"challenge":{"type":"string","description":"Payload to answer the challenge"}},"required":["challenge"]},"me.paymentMean.PaypalCreation":{"type":"object","description":"Missing description","properties":{"description":{"type":"string","description":"Custom description of this account","nullable":true},"returnUrl":{"type":"string","description":"Callback URL where the customer will be redirected to after validation","nullable":true},"setDefault":{"type":"boolean","description":"Set as default payment mean once validated","nullable":true}}},"me.paymentMean.PaypalStateEnum":{"type":"string","description":"State of you paypal","enum":["failing","tooManyFailures","valid"]},"me.paymentMean.PaypalValidation":{"type":"object","description":"A validation required to add a payment mean paypal","properties":{"id":{"type":"integer","readOnly":true},"submitUrl":{"type":"string","nullable":true,"readOnly":true},"url":{"type":"string","description":"URL where redirect for registration process","readOnly":true},"validationType":{"allOf":[{"$ref":"#/components/schemas/me.paymentMean.ValidationTypeEnum"}],"description":"Kind of registration validation","readOnly":true}}},"me.paymentMean.ValidationTypeEnum":{"type":"string","description":"All the validation you may have to do","enum":["creditAccount","documentToSend","simpleValidation"]},"order.CurrencyCodeEnum":{"type":"string","description":"Currency code","enum":["AUD","CAD","CZK","EUR","GBP","INR","LTL","MAD","N/A","PLN","SGD","TND","USD","XOF","points"]},"order.Price":{"type":"object","description":"Price with its currency and textual representation","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/order.CurrencyCodeEnum"}],"description":"Currency code","readOnly":true},"priceInUcents":{"type":"integer","description":"Price in microcents","nullable":true,"readOnly":true},"text":{"type":"string","description":"Textual representation","readOnly":true},"value":{"type":"number","description":"The effective price","readOnly":true}}},"phoneNumber":{"type":"string","description":"Phone number","format":"phone-number"},"time":{"type":"string","description":"Time (e.g., 15:04:05)","format":"time","example":"15:04:05"}},"securitySchemes":{"oAuth2AuthCode":{"type":"oauth2","description":"Oauth2","x-client-id":"1bb9c7df371741c0","x-client-secret":"a5b4de870aca620d10fbf63cd18d205b","flows":{"authorizationCode":{"authorizationUrl":"https://auth.eu.ovhcloud.com/oauth2/authorize","tokenUrl":"https://auth.eu.ovhcloud.com/oauth2/token","scopes":{"account/all":"Manage your account","all":"Manage your whole account and all your services","services/all":"Manage your services lifecycle and billing"}}}}}},"paths":{"/me/payment/availableMethods":{"get":{"summary":"Retrieve available payment method","security":[{"oAuth2AuthCode":[]}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/me.payment.AvailablePaymentMethod"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/payment/availableMethods\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/payment/availableMethods\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/availableMethods/get","required":true}]}},"/me/payment/method":{"get":{"summary":"Retrieve payment method list","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"default","description":"Filter on 'default' property","schema":{"type":"boolean"}},{"in":"query","name":"paymentType","description":"Filter on 'paymentType' property","schema":{"type":"string"}},{"in":"query","name":"status","description":"Filter on 'status' property","schema":{"$ref":"#/components/schemas/me.payment.method.StatusEnum"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/payment/method\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/payment/method\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/get","required":true}],"x-expanded-response":"MePaymentPaymentMethod"},"post":{"summary":"Register a new payment method","security":[{"oAuth2AuthCode":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.method.Creation"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.method.Validation"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.payment.method.Creation\nresult = client.post(\"/me/payment/method\",\n\tbillingContactId = None, # Associated billing contact ID (type: integer, nullable)\n\tcallbackUrl = None, # Callback URL's necessary to register (type: me.payment.method.CallbackUrl)\n\tdefault = None, # Indicates if this payment method will be set as the default one (type: boolean)\n\tdescription = None, # Personalized description (type: string, nullable)\n\tformData = None, # Additional payment information (type: string, nullable)\n\torderId = None, # Order ID to pay it if it's possible (in oneshot transaction or while registration) (type: integer, nullable)\n\tpaymentSubType = None, # Payment sub-type (type: me.payment.CreationSubTypeEnum, nullable)\n\tpaymentType = None, # Payment type (type: string)\n\tregister = None, # Register this payment method if it's possible (default value is false and will proceed a oneshot transaction) (type: boolean)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.payment.method.Creation\n$result = $ovh->post(\"/me/payment/method\", array(\n\tbillingContactId => null, // Associated billing contact ID (type: integer, nullable)\n\tcallbackUrl => null, // Callback URL's necessary to register (type: me.payment.method.CallbackUrl)\n\tdefault => null, // Indicates if this payment method will be set as the default one (type: boolean)\n\tdescription => null, // Personalized description (type: string, nullable)\n\tformData => null, // Additional payment information (type: string, nullable)\n\torderId => null, // Order ID to pay it if it's possible (in oneshot transaction or while registration) (type: integer, nullable)\n\tpaymentSubType => null, // Payment sub-type (type: me.payment.CreationSubTypeEnum, nullable)\n\tpaymentType => null, // Payment type (type: string)\n\tregister => null, // Register this payment method if it's possible (default value is false and will proceed a oneshot transaction) (type: boolean)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/create","required":true}]}},"/me/payment/method/{paymentMethodId}":{"delete":{"summary":"Delete a payment method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"paymentMethodId","description":"Payment method ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.PaymentMethod"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/me/payment/method/{paymentMethodId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/me/payment/method/{paymentMethodId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/delete","required":true}]},"get":{"summary":"Retrieve a payment method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"paymentMethodId","description":"Payment method ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.PaymentMethod"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/payment/method/{paymentMethodId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/payment/method/{paymentMethodId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/get","required":true}],"x-response-identifier":"paymentMethodId"},"put":{"summary":"Edit payment method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"paymentMethodId","description":"Payment method ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.PaymentMethod"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.PaymentMethod"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.payment.PaymentMethod\nresult = client.put(\"/me/payment/method/{paymentMethodId}\",\n\tdefault = None, # Indicates if payment method is the default one for this account (type: boolean)\n\tdescription = None, # Custom customer description (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.payment.PaymentMethod\n$result = $ovh->put(\"/me/payment/method/{paymentMethodId}\", array(\n\tdefault => null, // Indicates if payment method is the default one for this account (type: boolean)\n\tdescription => null, // Custom customer description (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/edit","required":true}]}},"/me/payment/method/{paymentMethodId}/challenge":{"post":{"summary":"Challenge your payment method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"paymentMethodId","description":"Payment method ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.method.Challenge"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.payment.method.Challenge\nresult = client.post(\"/me/payment/method/{paymentMethodId}/challenge\",\n\tchallenge = None, # Challenge (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.payment.method.Challenge\n$result = $ovh->post(\"/me/payment/method/{paymentMethodId}/challenge\", array(\n\tchallenge => null, // Challenge (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/challenge","required":true}]}},"/me/payment/method/{paymentMethodId}/details":{"post":{"summary":"Add details to your payment method challenge","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"paymentMethodId","description":"Payment method ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.method.Details"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.method.Validation"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.payment.method.Details\nresult = client.post(\"/me/payment/method/{paymentMethodId}/details\",\n\tdetails = None, # Details data (type: string)\n\ttransactionId = None, # Transaction ID (type: integer)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.payment.method.Details\n$result = $ovh->post(\"/me/payment/method/{paymentMethodId}/details\", array(\n\tdetails => null, // Details data (type: string)\n\ttransactionId => null, // Transaction ID (type: integer)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/details/create","required":true}]}},"/me/payment/method/{paymentMethodId}/finalize":{"post":{"summary":"Finalize a payment method registration","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"paymentMethodId","description":"Payment method ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.method.Finalize"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.PaymentMethod"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.payment.method.Finalize\nresult = client.post(\"/me/payment/method/{paymentMethodId}/finalize\",\n\texpirationMonth = None, # Expiration month (type: integer, nullable)\n\texpirationYear = None, # Expiration year (type: integer, nullable)\n\tformSessionId = None, # Form session ID (type: string, nullable)\n\tregistrationId = None, # Registration ID (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.payment.method.Finalize\n$result = $ovh->post(\"/me/payment/method/{paymentMethodId}/finalize\", array(\n\texpirationMonth => null, // Expiration month (type: integer, nullable)\n\texpirationYear => null, // Expiration year (type: integer, nullable)\n\tformSessionId => null, // Form session ID (type: string, nullable)\n\tregistrationId => null, // Registration ID (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/method/finalize","required":true}]}},"/me/payment/transaction":{"get":{"summary":"Retrieve payment transaction list","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"paymentMethodId","description":"Payment method ID","schema":{"type":"integer"}},{"in":"query","name":"status","description":"Status","schema":{"$ref":"#/components/schemas/me.payment.transaction.StatusEnum"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/payment/transaction\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/payment/transaction\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/transaction/get","required":true}],"x-expanded-response":"MePaymentTransaction"}},"/me/payment/transaction/{transactionId}":{"get":{"summary":"Retrieve a transaction","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"transactionId","description":"Transaction ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.payment.Transaction"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/payment/transaction/{transactionId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/payment/transaction/{transactionId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/payment/transaction/get","required":true}],"x-response-identifier":"transactionId"}},"/me/paymentMean/bankAccount":{"get":{"summary":"List of bank accounts","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"state","description":"Filter on 'status' property","schema":{"$ref":"#/components/schemas/me.paymentMean.BankAccountStateEnum"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/bankAccount\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/bankAccount\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/get","required":true}],"x-expanded-response":"MePaymentMeanBankAccount"},"post":{"summary":"Add a new payment mean bank account","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.BankAccountCreation"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.BankAccountValidation"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.BankAccountCreation\nresult = client.post(\"/me/paymentMean/bankAccount\",\n\tbic = None, # Bank account BIC (type: string)\n\tdescription = None, # Custom description of this account (type: string, nullable)\n\tiban = None, # Bank account IBAN (type: string)\n\townerAddress = None, # Bank account owner's address (type: string)\n\townerName = None, # Bank account owner's name (type: string)\n\tsetDefault = None, # Set as default payment mean once validated (type: boolean, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.BankAccountCreation\n$result = $ovh->post(\"/me/paymentMean/bankAccount\", array(\n\tbic => null, // Bank account BIC (type: string)\n\tdescription => null, // Custom description of this account (type: string, nullable)\n\tiban => null, // Bank account IBAN (type: string)\n\townerAddress => null, // Bank account owner's address (type: string)\n\townerName => null, // Bank account owner's name (type: string)\n\tsetDefault => null, // Set as default payment mean once validated (type: boolean, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/create","required":true}]}},"/me/paymentMean/bankAccount/{id}":{"delete":{"summary":"Disable payment through this account","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/me/paymentMean/bankAccount/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/me/paymentMean/bankAccount/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/delete","required":true}]},"get":{"summary":"Get bank account properties","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.BankAccount"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/bankAccount/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/bankAccount/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/get","required":true}],"x-response-identifier":"id"},"put":{"summary":"Alter this object properties","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.BankAccount"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.BankAccount\nresult = client.put(\"/me/paymentMean/bankAccount/{id}\",\n\tdescription = None, # Custom description of this bank account (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.BankAccount\n$result = $ovh->put(\"/me/paymentMean/bankAccount/{id}\", array(\n\tdescription => null, // Custom description of this bank account (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/edit","required":true}]}},"/me/paymentMean/bankAccount/{id}/challenge":{"post":{"summary":"Challenge your bank account","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.BankAccountChallengeCreation"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.BankAccountChallengeCreation\nresult = client.post(\"/me/paymentMean/bankAccount/{id}/challenge\",\n\tchallenge = None, # Payload to answer the challenge (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.BankAccountChallengeCreation\n$result = $ovh->post(\"/me/paymentMean/bankAccount/{id}/challenge\", array(\n\tchallenge => null, // Payload to answer the challenge (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/challenge","required":true}]}},"/me/paymentMean/bankAccount/{id}/chooseAsDefaultPaymentMean":{"post":{"summary":"Choose this bank account as your default payment mean. Will cancel the previous choice.","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/me/paymentMean/bankAccount/{id}/chooseAsDefaultPaymentMean\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/me/paymentMean/bankAccount/{id}/chooseAsDefaultPaymentMean\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/bankAccount/chooseAsDefaultPaymentMean","required":true}]}},"/me/paymentMean/creditCard":{"get":{"summary":"List of payment mean credit cards","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/creditCard\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/creditCard\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/get","required":true}],"x-expanded-response":"MePaymentMeanCreditCard"},"post":{"summary":"Add a new payment mean credit card","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.CreditCardCreation"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.CreditCardValidation"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.CreditCardCreation\nresult = client.post(\"/me/paymentMean/creditCard\",\n\tdescription = None, # Custom description of this account (type: string, nullable)\n\treturnUrl = None, # Callback URL where the customer will be redirected to after validation (type: string, nullable)\n\tsetDefault = None, # Set as default payment mean once validated (type: boolean, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.CreditCardCreation\n$result = $ovh->post(\"/me/paymentMean/creditCard\", array(\n\tdescription => null, // Custom description of this account (type: string, nullable)\n\treturnUrl => null, // Callback URL where the customer will be redirected to after validation (type: string, nullable)\n\tsetDefault => null, // Set as default payment mean once validated (type: boolean, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/create","required":true}]}},"/me/paymentMean/creditCard/{id}":{"delete":{"summary":"Disable payment through this credit card","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/me/paymentMean/creditCard/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/me/paymentMean/creditCard/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/delete","required":true}]},"get":{"summary":"Get credit card properties","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.CreditCard"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/creditCard/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/creditCard/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/get","required":true}],"x-response-identifier":"id"},"put":{"summary":"Alter this object properties","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.CreditCard"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.CreditCard\nresult = client.put(\"/me/paymentMean/creditCard/{id}\",\n\tdescription = None, # Custom description of this credit card (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.CreditCard\n$result = $ovh->put(\"/me/paymentMean/creditCard/{id}\", array(\n\tdescription => null, // Custom description of this credit card (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/edit","required":true}]}},"/me/paymentMean/creditCard/{id}/challenge":{"post":{"summary":"Challenge your credit card","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.CreditCardChallengeCreation"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.CreditCardChallengeCreation\nresult = client.post(\"/me/paymentMean/creditCard/{id}/challenge\",\n\tchallenge = None, # Payload to answer the challenge (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.CreditCardChallengeCreation\n$result = $ovh->post(\"/me/paymentMean/creditCard/{id}/challenge\", array(\n\tchallenge => null, // Payload to answer the challenge (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/challenge","required":true}]}},"/me/paymentMean/creditCard/{id}/chooseAsDefaultPaymentMean":{"post":{"summary":"Choose this credit card as your default payment mean. Will cancel the previous choice.","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/me/paymentMean/creditCard/{id}/chooseAsDefaultPaymentMean\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/me/paymentMean/creditCard/{id}/chooseAsDefaultPaymentMean\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/creditCard/chooseAsDefaultPaymentMean","required":true}]}},"/me/paymentMean/deferredPaymentAccount":{"get":{"summary":"List of payment mean deferred accounts","security":[{"oAuth2AuthCode":[]}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/deferredPaymentAccount\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/deferredPaymentAccount\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/deferredPaymentAccount/get","required":true}],"x-expanded-response":"MePaymentMeanDeferred"}},"/me/paymentMean/deferredPaymentAccount/{id}":{"get":{"summary":"Get this object properties","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.Deferred"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/deferredPaymentAccount/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/deferredPaymentAccount/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/deferredPaymentAccount/get","required":true}],"x-response-identifier":"id"},"put":{"summary":"Alter this object properties","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.Deferred"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.Deferred\nresult = client.put(\"/me/paymentMean/deferredPaymentAccount/{id}\",\n\tdescription = None, # Custom description of this deferred account (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.Deferred\n$result = $ovh->put(\"/me/paymentMean/deferredPaymentAccount/{id}\", array(\n\tdescription => null, // Custom description of this deferred account (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/deferredPaymentAccount/edit","required":true}]}},"/me/paymentMean/deferredPaymentAccount/{id}/chooseAsDefaultPaymentMean":{"post":{"summary":"Choose this deferred account as your default payment mean. Will cancel the previous choice.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/me/paymentMean/deferredPaymentAccount/{id}/chooseAsDefaultPaymentMean\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/me/paymentMean/deferredPaymentAccount/{id}/chooseAsDefaultPaymentMean\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/deferredPaymentAccount/chooseAsDefaultPaymentMean","required":true}]}},"/me/paymentMean/paypal":{"get":{"summary":"List of payment mean paypals","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/paypal\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/paypal\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/get","required":true}],"x-expanded-response":"MePaymentMeanPaypal"},"post":{"summary":"Add a new payment mean paypal","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.PaypalCreation"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.PaypalValidation"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.PaypalCreation\nresult = client.post(\"/me/paymentMean/paypal\",\n\tdescription = None, # Custom description of this account (type: string, nullable)\n\treturnUrl = None, # Callback URL where the customer will be redirected to after validation (type: string, nullable)\n\tsetDefault = None, # Set as default payment mean once validated (type: boolean, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.PaypalCreation\n$result = $ovh->post(\"/me/paymentMean/paypal\", array(\n\tdescription => null, // Custom description of this account (type: string, nullable)\n\treturnUrl => null, // Callback URL where the customer will be redirected to after validation (type: string, nullable)\n\tsetDefault => null, // Set as default payment mean once validated (type: boolean, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/create","required":true}]}},"/me/paymentMean/paypal/{id}":{"delete":{"summary":"Disable payment through this paypal","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/me/paymentMean/paypal/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/me/paymentMean/paypal/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/delete","required":true}]},"get":{"summary":"Get paypal properties","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.Paypal"}}}}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/me/paymentMean/paypal/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/me/paymentMean/paypal/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/get","required":true}],"x-response-identifier":"id"},"put":{"summary":"Alter this object properties","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.Paypal"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.Paypal\nresult = client.put(\"/me/paymentMean/paypal/{id}\",\n\tdescription = None, # Custom description of this paypal (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.Paypal\n$result = $ovh->put(\"/me/paymentMean/paypal/{id}\", array(\n\tdescription => null, // Custom description of this paypal (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/edit","required":true}]}},"/me/paymentMean/paypal/{id}/challenge":{"post":{"summary":"Challenge your paypal","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/me.paymentMean.PaypalChallengeCreation"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: me.paymentMean.PaypalChallengeCreation\nresult = client.post(\"/me/paymentMean/paypal/{id}/challenge\",\n\tchallenge = None, # Payload to answer the challenge (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: me.paymentMean.PaypalChallengeCreation\n$result = $ovh->post(\"/me/paymentMean/paypal/{id}/challenge\", array(\n\tchallenge => null, // Payload to answer the challenge (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/challenge","required":true}]}},"/me/paymentMean/paypal/{id}/chooseAsDefaultPaymentMean":{"post":{"summary":"Choose this paypal as your default payment mean. Will cancel the previous choice.","deprecated":true,"x-deprecation-date":"2023-03-07T00:00:00Z","x-deletion-date":"2023-09-07T00:00:00Z","x-replacement-route":"/me/payment/method","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Payment"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/me/paymentMean/paypal/{id}/chooseAsDefaultPaymentMean\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/me/paymentMean/paypal/{id}/chooseAsDefaultPaymentMean\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:me/paymentMean/paypal/chooseAsDefaultPaymentMean","required":true}]}}}}
