> ## Documentation Index
> Fetch the complete documentation index at: https://docs.artery.money/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a PIN

> Returns one of your PINs and its current status. Needs `pins:read` (or a read key).



## OpenAPI

````yaml /api-reference/openapi.yaml get /pins/{collection_id}
openapi: 3.1.0
info:
  title: Artery Partner API
  version: 0.2.0-draft
  summary: Collect rand in South Africa through Easypay PINs and receive US dollars.
  description: >
    The Artery Partner API lets your platform collect rand from customers in
    South Africa through

    Easypay PINs, and receive the net amount in US dollars on your Artery
    balance. You fund and

    withdraw that balance in stablecoin.


    **Draft (1 Dec 2026).** Realigned by hand to the partner routes in
    `Nuage-Payments/jano-money`

    (`dev`): `artery/artery-b2b.controller.ts`,
    `custody/custody-withdrawals.controller.ts`,

    `artery/withdrawal-destinations.controller.ts`,
    `custody/funding.controller.ts`, with types from

    `packages/types/src/artery.ts` and `custody.ts`. The code also generates its
    own OpenAPI file

    (`@nestjs/swagger`, `/api/v1/docs-json`); once exported it should replace
    this file. Charges and

    transfers (the Flutterwave consumer rail) are left out: they're off on the
    standalone Artery API.
  contact:
    name: Artery support
    email: support@artery.money
    url: https://docs.artery.money
servers:
  - url: https://api.artery.money/api/v1/artery/b2b
    description: Live
  - url: https://uat-api.artery.money/api/v1/artery/b2b
    description: Test (UAT). The partner sandbox address is still to be confirmed.
security:
  - apiKey: []
tags:
  - name: Account
    description: Check which organization and key you're using.
  - name: PINs
    description: Easypay PINs your customers pay.
  - name: Balance
    description: Your balance in US dollars.
  - name: Funding
    description: Stablecoin deposit addresses and the deposits made to them.
  - name: Withdrawals
    description: Withdrawal wallets and withdrawals in stablecoin.
paths:
  /pins/{collection_id}:
    get:
      tags:
        - PINs
      summary: Get a PIN
      description: >-
        Returns one of your PINs and its current status. Needs `pins:read` (or a
        read key).
      operationId: getPin
      parameters:
        - name: collection_id
          in: path
          required: true
          description: The PIN's `collection_id`, for example `00000123`.
          schema:
            type: string
      responses:
        '200':
          description: The PIN.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pin'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Pin:
      type: object
      properties:
        collection_id:
          type: string
          description: Artery's id for the PIN, eight digits.
        pin:
          type: string
          description: The 20-digit Easypay number your customer pays.
        amount_cents:
          type: integer
          description: Rand amount in cents.
        currency:
          type: string
          enum:
            - ZAR
        status:
          type: string
          enum:
            - UNPAID
            - PAID
            - EXPIRED
            - VOIDED
        is_reusable:
          type: boolean
        min_amount_cents:
          type:
            - integer
            - 'null'
          description: Reusable PINs only.
        max_amount_cents:
          type:
            - integer
            - 'null'
          description: Reusable PINs only.
        label:
          type:
            - string
            - 'null'
          description: Reusable PINs only.
        total_collected_cents:
          type: integer
        payment_count:
          type: integer
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        paid_at:
          type:
            - string
            - 'null'
          format: date-time
        partner_ref:
          type:
            - string
            - 'null'
        rate_lock:
          oneOf:
            - $ref: '#/components/schemas/RateLock'
            - type: 'null'
    RateLock:
      type: object
      description: The rate and fee locked for this PIN until it expires.
      properties:
        pair:
          type: string
          enum:
            - USD/ZAR
        rate:
          type: string
          description: Rand per US dollar
          8 decimal places.: null
        locked_until:
          type: string
          format: date-time
        expected_usd_cents_gross:
          type: integer
          description: Rand amount at the locked rate
          rounded down.: null
        expected_usd_cents_net:
          type: integer
          description: Gross minus fees; what you'll be credited.
        fee_lines:
          type: array
          items:
            $ref: '#/components/schemas/FeeLine'
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
        message:
          description: An error code such as `INVALID_AMOUNT`, or a short explanation.
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
    FeeLine:
      type: object
      properties:
        code:
          type: string
        description:
          type: string
        fee_type:
          type: string
        percent:
          type: number
        flat_fee_zar_cents:
          type: integer
        amount_zar_cents:
          type: integer
        amount_usd_cents:
          type: integer
  responses:
    BadRequest:
      description: >-
        The request is invalid, for example `INVALID_AMOUNT`,
        `AMOUNT_EXCEEDS_LIMIT` or `INVALID_COLLECTION_ID`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 400
            message: AMOUNT_EXCEEDS_LIMIT
            error: Bad Request
    Unauthorized:
      description: >-
        The key is missing, malformed, unknown, expired, or for the other
        environment.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Invalid API key
            error: Unauthorized
    NotFound:
      description: No such record on your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 404
            message: PIN not found
            error: Not Found
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >
        Send your key as `Authorization: Bearer <key>`. Sandbox keys start
        `art_test_ro_` (read) or

        `art_test_rw_` (write). A key only works in its own environment, and a
        key with an IP

        allowlist only works from those addresses.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.