Payment Examples

This page contains a few example requests and responses for the transmission of payment methods

Request

Create Payment Method

In this request:

  • the URI shows a reference to the member id in uuid format

    • POST /members/96b6a19b-c6c1-4d4c-ba61-e67453afa29b/payment_method

  • The member must exist before a payment_method is created for their enrollment

Card

POST /members/{id}/payment_method
{
 "payment_method": {
   "payment_type": "card",
   "card_number": "999943434343433",
   "security_code": "999",
   "expiration_date": "2026-07-01",
   "zip_code": "10011"
 }
}

Bank Account

{
 "payment_method": {
   "payment_type": "bank_account",
   "account_number": "123456789012",
   "routing_number": "987654321",
   "account_type": "checking"
 }
}

Response

Validate Creation of Payment Method

  • 201 response code - shows the Payment Method was created successfully

  • Confirm presence of id

Card

{
 "payment_method": {
   "id": "701282c7-de41-48c6-8614-3e169c1756aa"
   "payment_type": "card",
   "card_number": "999943434343433",
   "security_code": "999",
   "zip_code": "10011",
   "expiration_date": "2026-07-01",
 }
}

Bank Account

{
 "payment_method": {
   "id": "701282c7-de41-48c6-8614-3e169c1756aa"
   "payment_type": "bank_account",
   "account_number": "123456789012",
   "routing_number": "987654321",
   "account_type": "checking"
 }
}

Last updated

Was this helpful?