GET
/
companies
/
{company_id}
/
customers
/
{customer_id}
/
payment_methods
/
setup_intent
curl --request GET \
  --url https://api.maplebilling.com/api/v1/companies/{company_id}/customers/{customer_id}/payment_methods/setup_intent \
  --header 'Authorization: Bearer <token>'
{
  "helcim": {
    "checkout_token": "<string>"
  },
  "id": "<string>",
  "integration_id": "<string>",
  "intent_secret": "<string>",
  "provider_account_id": "<string>",
  "provider_key": "<string>",
  "razorpay": {
    "id": "<string>",
    "intent_secret": "<string>",
    "provider_customer_id": "<string>",
    "recurring": "<string>"
  },
  "square": {
    "account_id": "<string>",
    "location_id": "<string>",
    "provider_customer_id": "<string>"
  },
  "stripe": {
    "account_id": "<string>",
    "id": "<string>",
    "intent_secret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

The idempotency key that will be used to ensure the request is only performed once

Path Parameters

company_id
string
required

Company ID. It should have a prefix 'cmp_'.

customer_id
string
required

customer_id or identifier

Response

200 - application/json

OK

The response is of type object.