curl --request GET \
--url https://sandbox-api.instockrx.com/payment-methods \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/payment-methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/payment-methods"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "Dwolla",
"status": "Verified",
"isDefault": true,
"isPaymentDefault": true,
"nickname": "<string>",
"bankName": "<string>",
"last4": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}List the buyer's stored payment methods
Scope: payments:read.
Returns the payment methods stored for the pharmacy resolved from the
credential + X-Pharmacy-Id. Today V2 surfaces Dwolla funding sources
only; the schema is forward-compatible with additional type values
(Orum, Stripe) that may be added in non-breaking minor revisions.
Use ?onlyVerified=true to filter to methods that can actually be used
on a purchase call. Use ?defaultOnly=true to return only the
pharmacy’s payment-default method (zero or one result).
curl --request GET \
--url https://sandbox-api.instockrx.com/payment-methods \
--header 'X-InStockRx-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-InStockRx-Api-Key': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/payment-methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/payment-methods"
headers = {"X-InStockRx-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "Dwolla",
"status": "Verified",
"isDefault": true,
"isPaymentDefault": true,
"nickname": "<string>",
"bankName": "<string>",
"last4": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Authorizations
Headers
Which pharmacy in your group you are acting as. Required whenever your group holds more than one pharmacy — omitting it is then 400 missing-pharmacy-context. With exactly one pharmacy it may be omitted, but send it anyway: the call starts failing the day a second pharmacy is added.