{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/v2/paymentMethod/:paymentMethodId","auth":"required","results":{"codes":[{"status":200,"language":"json","code":"{\n    \"id\": \"PA_XXXXXXXXXXX\",\n    \"owner\": \"account:AC_XXXXXXXXXXX\",\n    \"createdAt\": 1607878270000,\n    \"createdBy\": \"account:AC_XXXXXXXXXXX\",\n    \"name\": \"USD Bank account ending in 0000\",\n    \"defaultCurrency\": \"USD\",\n    \"providerId\": \"PA_XXXXXXXXXXX\",\n    \"status\": \"AWAITING_FOLLOWUP\",\n    \"statusMessage\": null,\n    \"waitingPrompts\": [\n        {\n            \"id\": \"DQVXCZDA97X\",\n            \"prompt\": \"Upload a bank statement\",\n            \"responses\": [],\n            \"type\": \"DOCUMENT\"\n        }\n    ],\n    \"providerData\": {},\n    \"linkType\": \"INTERNATIONAL_TRANSFER\",\n    \"beneficiaryType\": \"INDIVIDUAL\",\n    \"supportsDeposit\": true,\n    \"nameOnMethod\": \"Billy Jones\",\n    \"last4Digits\": \"0000\",\n    \"brand\": null,\n    \"expirationDisplay\": null,\n    \"countryCode\": \"US\",\n    \"nickname\": null,\n    \"underReviewAt\": null,\n    \"reviewReason\": null,\n    \"rejectionMessage\": null,\n    \"disabled\": false,\n    \"supportsPayment\": true,\n    \"chargeableCurrencies\": [\n        \"USD\"\n    ],\n    \"depositableCurrencies\": [\n        \"USD\"\n    ],\n    \"chargeFeeSchedule\": null,\n    \"depositFeeSchedule\": null,\n    \"minCharge\": null,\n    \"maxCharge\": null,\n    \"minDeposit\": null,\n    \"maxDeposit\": null,\n    \"documents\": [],\n    \"deletedDocuments\": [],\n    \"ownerName\": \"Decipher Financial\",\n    \"blockchains\": {\n        \"BTC\": \"mx9SoPogsMaaesXHtrb5dsn3fyRsQqFmuE\",\n        \"ETH\": \"0x39a3130c4d27c77eb70197e14444c738ddb90182\"\n    },\n    \"liquidationBalances\": {},\n    \"srn\": \"paymentmethod:PA_XXXXXXXXXXX\"\n}","name":""}]},"settings":"","params":[{"name":"paymentMethodId","type":"string","default":"","desc":"the ID of the payment method to retrieve","required":false,"in":"path","ref":"","_id":"5bf5d5ec54a5e8004225699f"}],"examples":{"codes":[{"code":"const axios = require('axios');\n\nasync getPaymentMethod(req, res) {\n    try {\n        const timestamp = new Date().getTime();\n        const fullUrl = `https://api.sendwyre.com/v2/paymentMethod/${req.params.payment_id}?timestamp=${timestamp}`;\n        const headers = {};\n        const details = \"\";\n        headers['Content-Type'] = 'application/json';\n        headers['X-Api-Key'] = wyre_api_key;\n        headers['X-Api-Signature'] = signature(fullUrl, details);\n\n        const config = {\n            method: \"GET\",\n            url: fullUrl,\n            headers: headers,\n        }\n\n        const response = await axios(config);\n        res.send(response.data);\n\n    } catch (error) {\n        res.status(400).send(error.response.data);\n        return;\n    }\n    return;\n}","language":"javascript","name":"Node.js"}]},"method":"get","apiSetting":"5c50b085aae6150014b3e80e"},"next":{"description":"","pages":[]},"title":"Get Payment Method","type":"endpoint","slug":"get-payment-method","excerpt":"Retrieve a specific payment method by ID","body":"See [Payment Method Resources](doc:payment-method-overview) for more information on the fields included on the Payment Method resource.","updates":["5e90259c7866250018f6e42b"],"order":10,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5bc634348d2457005cea9ba7","project":"550f74bb6fc8130d0038aad3","version":{"version":"3","version_clean":"3.0.0","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["550f75de61d9d30d00af9e02","551027e38579861900a86698","551029e08579861900a8669a","551029e7498062190006328a","5bc633a722d682005c9ad9e4","5bc633b08c4b0b000d6a7eaa","5bc633b48f3ff600626e3e18","5bc63538e5a6ba000d22ee6d","5bc63587a18a6b000decd295","5bc635c0937fcb0056223d9c","5bc6360f42f41800319aeaa6","5be5d13ff1d319002baca9ce","5be5d2287cd14d00291fbfdb","5be8b3b09f7cb70023c56a39","5be8b3cbb910100044e20206","5c1d769a4f6aed001fe527f0","5c402942010f0d001496dded","5e8127d61c906800374eeb1c","5f2768c98622b8005106544a","5f2768d05702ca0011f7655e","5f276e5348d2b600321aef9b","5f276fd300e519001139200a","5f9a2cb79dafe500259281a7","5fd92bf362bb7301b00e48ba"],"_id":"550f75de61d9d30d00af9e01","__v":24,"releaseDate":"2015-03-23T02:09:34.221Z","project":"550f74bb6fc8130d0038aad3","createdAt":"2015-03-23T02:09:34.221Z","forked_from":"550f74bb6fc8130d0038aad6"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Payment Methods","slug":"payment-methods","order":10,"from_sync":false,"reference":true,"_id":"5bc633b08c4b0b000d6a7eaa","project":"550f74bb6fc8130d0038aad3","version":"550f75de61d9d30d00af9e01","createdAt":"2018-10-16T18:53:36.184Z","__v":0},"user":"56ddd4424acab82000ae9d30","createdAt":"2018-10-16T18:55:48.384Z","__v":11,"parentDoc":null}

getGet Payment Method

Retrieve a specific payment method by ID

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

paymentMethodId:
string
the ID of the payment method to retrieve

Examples


Result Format


Documentation

See [Payment Method Resources](doc:payment-method-overview) for more information on the fields included on the Payment Method resource.