Skip to main content
PUT
/
internal-billing
/
payment-methods
Update Payment Method
curl --request PUT \
  --url https://api.decodahealth.com/internal-billing/payment-methods \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "rainforestPaymentMethod": {
    "paymentMethodId": "<string>",
    "paymentMethodConfigId": "<string>",
    "fingerprint": "<string>",
    "methodType": "<string>",
    "card": {
      "brand": "<string>",
      "last4": "<string>",
      "expMonth": 123,
      "expYear": 123
    },
    "ach": {
      "accountHolderType": "<string>",
      "accountNumberLast4": "<string>",
      "bankName": "<string>",
      "routingNumber": "<string>"
    },
    "applePay": {
      "type": "<string>",
      "brand": "<string>",
      "brandDesc": "<string>",
      "description": "<string>"
    },
    "billingContact": {
      "name": "<string>",
      "addressLine1": "<string>",
      "addressLine2": "<string>",
      "city": "<string>",
      "state": "<string>",
      "postalCode": "<string>",
      "country": "<string>",
      "email": "<string>",
      "phone": "<string>"
    },
    "metadata": {},
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}
'
{
  "id": "<string>",
  "patientId": "<string>",
  "rainforestPaymentMethodId": "<string>",
  "brand": "<string>",
  "last4": "<string>",
  "expMonth": 123,
  "expYear": 123,
  "accountHolderType": "<string>",
  "accountNumberLast4": 123,
  "bankName": "<string>",
  "routingNumber": 123,
  "description": "<string>",
  "type": "CARD",
  "isDefault": false,
  "isArchived": false
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
rainforestPaymentMethod
RainforestPaymentMethod · object
required

Response

Successful Response

id
string
required
patientId
string | null
required
rainforestPaymentMethodId
string
required
brand
string | null
required
last4
string | null
required
expMonth
integer | null
required
expYear
integer | null
required
accountHolderType
string | null
required
accountNumberLast4
integer | null
required
bankName
string | null
required
routingNumber
integer | null
required
description
string | null
required
type
enum<string> | null
required
Available options:
CARD,
ACH,
APPLE_PAY
isDefault
boolean
default:false
isArchived
boolean
default:false