Where an app's payments stand
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Whether the app takes payments, its business name, support email and terms of sale, unpaid orders, and the Stripe accounts of other apps it could reuse. A signed-in owner or admin only; an API key is refused.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidrepository_id*stringFormat
uuidRequest fulfilled, document follows
application/json- response
business_name?string|nullreusable_accounts*array<>sales_terms?string|nullstate*stringValue in
"off""needs_details""needs_stripe""declined""needs_terms""live""disconnected"stripe_account_id?string|nullsupport_email?string|nulltax_active*booleanunpaid_orders*integercurl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/payments/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "business_name": "string", "reusable_accounts": [ { "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65", "business_name": "string", "label": "string" } ], "sales_terms": "string", "state": "off", "stripe_account_id": "string", "support_email": "string", "tax_active": true, "unpaid_orders": 0}