Pin Payments Customers API

Store customer profiles with payment sources for repeat billing.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /customers Create a customer · Create a customer #
Ask an LLM
“How do I add a new customer with a card on file?”
“Can I create a customer and store their card token at the same time?”
Tell an agent
Create a customer with email {email}.
Add {first_name} {last_name} as a customer with email {email} and card token {card_token}.
GET /customers List customers · List customers #
Ask an LLM
“Which customers have I stored in Pin?”
“Can I see all my customer tokens?”
Tell an agent
List all my customers.
Show every customer record.
GET /customers/{customer_token} Retrieve a customer · Retrieve a customer #
Ask an LLM
“What details are stored for a particular customer?”
“Can I look up one customer by their token?”
Tell an agent
Retrieve customer {customer_token}.
Show the stored details for customer {customer_token}.
PUT /customers/{customer_token} Update a customer · Update a customer #
Ask an LLM
“How do I change a customer's phone number or notes?”
“Can I update a customer's company name?”
Tell an agent
Update customer {customer_token}.
Change the phone number of customer {customer_token}.
DELETE /customers/{customer_token} Delete a customer · Delete a customer #
Ask an LLM
“How do I remove a customer and all their cards?”
“Can I delete a customer record entirely?”
Tell an agent destructive · confirm first
Delete customer {customer_token}.
Remove the customer record {customer_token}.
GET /customers/{customer_token}/charges List a customer's charges · List charges for a customer #
Ask an LLM
“Which charges have been made against a customer?”
“Can I see a customer's transaction history?”
Tell an agent
List charges for customer {customer_token}.
Show the transaction history of customer {customer_token}.
GET /customers/{customer_token}/cards List a customer's cards · List cards for a customer #
Ask an LLM
“Which cards are on file for a customer?”
“Can I see all card tokens a customer has stored?”
Tell an agent
List cards for customer {customer_token}.
Show every stored card token of customer {customer_token}.
POST /customers/{customer_token}/cards Add a card to a customer · Add a card to a customer #
Ask an LLM
“How do I add a card to an existing customer?”
“Can I store a card token on a customer?”
Tell an agent
Add a card to customer {customer_token}.
Store this card token on customer {customer_token}.
DELETE /customers/{customer_token}/cards/{card_token} Remove a card from a customer · Remove a non-primary card from a customer #
Ask an LLM
“How do I remove a card from a customer?”
“Can I delete a non-primary card from a customer?”
Tell an agent destructive · confirm first
Remove card {card_token} from customer {customer_token}.
Delete the stored card {card_token} of customer {customer_token}.
GET /customers/{customer_token}/subscriptions List a customer's subscriptions · List subscriptions for a customer #
Ask an LLM
“Which subscriptions does a customer have?”
“Can I see a customer's active subscriptions?”
Tell an agent
List subscriptions for customer {customer_token}.
Show the active subscriptions of customer {customer_token}.
DELETE /customers/{customer_token}/subscriptions/{sub_token} Cancel a customer subscription · Cancel a customer subscription #
Ask an LLM
“How do I cancel a customer's subscription?”
“Can I end a subscription for a customer?”
Tell an agent destructive · confirm first
Cancel subscription {sub_token} for customer {customer_token}.
End the subscription {sub_token} of customer {customer_token}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pin-payments:pin-payments-customers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pin-payments-customers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pin Payments Customers API
  description: A complete payments solution, built for speed and simplicity. The Pin Payments API enables you to charge cards, manage customers, issue refunds, store cards, and run subscriptions.
  version: '1.0'
  contact:
    name: Pin Payments
    url: https://pinpayments.com/developers/api-reference
servers:
- url: https://api.pinpayments.com/1
  description: Live
- url: https://test-api.pinpayments.com/1
  description: Test
security:
- basicAuth: []
tags:
- name: Customers
  description: Store customer profiles with payment sources for repeat billing.
paths:
  /customers:
    post:
      tags:
      - Customers
      summary: Create a customer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerCreate'
      responses:
        '201':
          description: Customer created
      operationId: postCustomers
      x-operation-id-source: derived
    get:
      tags:
      - Customers
      summary: List customers
      responses:
        '200':
          description: A paginated list of customers
      operationId: getCustomers
      x-operation-id-source: derived
  /customers/{customer_token}:
    get:
      tags:
      - Customers
      summary: Retrieve a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '200':
          description: Customer details
      operationId: getCustomersByCustomerToken
      x-operation-id-source: derived
    put:
      tags:
      - Customers
      summary: Update a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '200':
          description: Customer updated
      operationId: putCustomersByCustomerToken
      x-operation-id-source: derived
    delete:
      tags:
      - Customers
      summary: Delete a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '204':
          description: Customer deleted
      operationId: deleteCustomersByCustomerToken
      x-operation-id-source: derived
  /customers/{customer_token}/charges:
    get:
      tags:
      - Customers
      summary: List charges for a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '200':
          description: A paginated list of charges
      operationId: getCustomersByCustomerTokenCharges
      x-operation-id-source: derived
  /customers/{customer_token}/cards:
    get:
      tags:
      - Customers
      summary: List cards for a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '200':
          description: A paginated list of cards
      operationId: getCustomersByCustomerTokenCards
      x-operation-id-source: derived
    post:
      tags:
      - Customers
      summary: Add a card to a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '201':
          description: Card added
      operationId: postCustomersByCustomerTokenCards
      x-operation-id-source: derived
  /customers/{customer_token}/cards/{card_token}:
    delete:
      tags:
      - Customers
      summary: Remove a non-primary card from a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      - in: path
        name: card_token
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Card removed
      operationId: deleteCustomersByCustomerTokenCardsByCardToken
      x-operation-id-source: derived
  /customers/{customer_token}/subscriptions:
    get:
      tags:
      - Customers
      summary: List subscriptions for a customer
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      responses:
        '200':
          description: A paginated list of subscriptions
      operationId: getCustomersByCustomerTokenSubscriptions
      x-operation-id-source: derived
  /customers/{customer_token}/subscriptions/{sub_token}:
    delete:
      tags:
      - Customers
      summary: Cancel a customer subscription
      parameters:
      - $ref: '#/components/parameters/CustomerToken'
      - in: path
        name: sub_token
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Subscription cancelled
      operationId: deleteCustomersByCustomerTokenSubscriptionsBySubToken
      x-operation-id-source: derived
components:
  schemas:
    CustomerCreate:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          format: email
        first_name:
          type: string
        last_name:
          type: string
        phone_number:
          type: string
        company:
          type: string
        notes:
          type: string
        card:
          type: object
        card_token:
          type: string
  parameters:
    CustomerToken:
      in: path
      name: customer_token
      required: true
      schema:
        type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic with the API key as the username and an empty password.