Skip to content
Coritan Docs

Organization API: Customer Portal: Payment methods

The 5 Organization API operations for payment methods.

View as Markdown

Part of Customer Portal.

Method Path Summary
GET /api/v1/orgs/{org_slug}/portal/payment-methods List customer's saved payment methods
POST /api/v1/orgs/{org_slug}/portal/payment-methods/confirm Confirm payment method setup after customer approves on gateway side
POST /api/v1/orgs/{org_slug}/portal/payment-methods/setup Initiate payment method tokenization on a regional gateway account
DELETE /api/v1/orgs/{org_slug}/portal/payment-methods/{method_id} Remove (deactivate) a saved payment method
PUT /api/v1/orgs/{org_slug}/portal/payment-methods/{method_id}/default Set a payment method as the default for this customer

List customer's saved payment methods

Section titled List customer's saved payment methods

GET /api/v1/orgs/{org_slug}/portal/payment-methods

List customer's saved payment methods.

Name In Type Required
org_slug path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Confirm payment method setup after customer approves on gateway side

Section titled Confirm payment method setup after customer approves on gateway side

POST /api/v1/orgs/{org_slug}/portal/payment-methods/confirm

Confirm payment method setup after customer approves on gateway side. Stores the tokenized method for future charges.

Name In Type Required Description
org_slug path string yes
gateway_name query string yes
session_id query string yes
set_as_default query boolean no Default: True.
currency query string no

application/json

Type: Callback Data.

Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Initiate payment method tokenization on a regional gateway account

Section titled Initiate payment method tokenization on a regional gateway account

POST /api/v1/orgs/{org_slug}/portal/payment-methods/setup

Initiate payment method tokenization on a regional gateway account.

Name In Type Required
org_slug path string yes
return_url query string yes
cancel_url query string yes
gateway_name query string no
currency query string no
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Remove (deactivate) a saved payment method

Section titled Remove (deactivate) a saved payment method

DELETE /api/v1/orgs/{org_slug}/portal/payment-methods/{method_id}

Remove (deactivate) a saved payment method.

Name In Type Required
method_id path integer yes
org_slug path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Set a payment method as the default for this customer

Section titled Set a payment method as the default for this customer

PUT /api/v1/orgs/{org_slug}/portal/payment-methods/{method_id}/default

Set a payment method as the default for this customer.

Name In Type Required
method_id path integer yes
org_slug path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.