Source Parts Inc. Loc API

The loc API from Source Parts Inc. — 8 operation(s) for loc.

GitHub OpenAPI

Operations 11

GET /loc List letters of credit for the authenticated user #
POST /loc Create a new letter of credit draft #
GET /loc/{loc_id} Get letter of credit details including amendments and presentations #
PUT /loc/{loc_id} Update a letter of credit (draft status only) #
DELETE /loc/{loc_id} Cancel a letter of credit #
POST /loc/{loc_id}/amend Request an amendment to a letter of credit #
GET /loc/{loc_id}/history Get status history for a letter of credit #
POST /loc/{loc_id}/present Submit document presentation for a letter of credit #
POST /loc/{loc_id}/request Submit LOC to bank for issuance (transitions draft → requested) #
POST /loc/from-quote/{quote_id} Deprecated alias for POST /v1/loc/quote/ #
POST /loc/quote/{quote_id} Create a letter of credit from an existing quotation #

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/source-parts:source-parts-loc-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

source-parts-loc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Source Parts Loc API
  description: 'The Source Parts v1 API provides programmatic access to electronic parts data,

    inventory management, BOM processing, and manufacturing workflows.


    **Required headers:** every request must include a non-empty `User-Agent`

    header identifying your application (e.g. `User-Agent: your-app/1.0`).

    Requests without one are rejected with `403 Forbidden` before authentication.'
  version: 1.1.0
  contact:
    name: Source Parts Support
    email: support@source.parts
    url: https://source.parts
  license:
    name: Proprietary
    url: https://source.parts/terms
servers:
- url: https://api.source.parts/v1
  description: Production
- url: http://localhost:9900/v1
  description: Local development
security:
- ApiKeyAuth: []
tags:
- name: loc
paths:
  /loc:
    get:
      tags:
      - loc
      summary: List letters of credit for the authenticated user
      x-generated: true
      x-handler: loc.list_loc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getLoc
      x-operation-id-source: derived
    post:
      tags:
      - loc
      summary: Create a new letter of credit draft
      x-generated: true
      x-handler: loc.create_loc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postLoc
      x-operation-id-source: derived
  /loc/{loc_id}:
    parameters:
    - name: loc_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - loc
      summary: Get letter of credit details including amendments and presentations
      x-generated: true
      x-handler: loc.get_loc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getLocByLocId
      x-operation-id-source: derived
    put:
      tags:
      - loc
      summary: Update a letter of credit (draft status only)
      x-generated: true
      x-handler: loc.update_loc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: putLocByLocId
      x-operation-id-source: derived
    delete:
      tags:
      - loc
      summary: Cancel a letter of credit
      x-generated: true
      x-handler: loc.cancel_loc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: deleteLocByLocId
      x-operation-id-source: derived
  /loc/{loc_id}/amend:
    parameters:
    - name: loc_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - loc
      summary: Request an amendment to a letter of credit
      x-generated: true
      x-handler: loc.amend_loc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postLocByLocIdAmend
      x-operation-id-source: derived
  /loc/{loc_id}/history:
    parameters:
    - name: loc_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - loc
      summary: Get status history for a letter of credit
      x-generated: true
      x-handler: loc.get_loc_history
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getLocByLocIdHistory
      x-operation-id-source: derived
  /loc/{loc_id}/present:
    parameters:
    - name: loc_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - loc
      summary: Submit document presentation for a letter of credit
      x-generated: true
      x-handler: loc.present_loc_documents
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postLocByLocIdPresent
      x-operation-id-source: derived
  /loc/{loc_id}/request:
    parameters:
    - name: loc_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - loc
      summary: Submit LOC to bank for issuance (transitions draft → requested)
      x-generated: true
      x-handler: loc.request_loc_issuance
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postLocByLocIdRequest
      x-operation-id-source: derived
  /loc/from-quote/{quote_id}:
    parameters:
    - name: quote_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - loc
      summary: Deprecated alias for POST /v1/loc/quote/
      deprecated: true
      x-successor-version: /v1/loc/quote/{quote_id}
      x-sunset: Wed, 28 Oct 2026 00:00:00 GMT
      x-generated: true
      x-handler: loc.create_loc_from_quote_legacy
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postLocFromQuoteByQuoteId
      x-operation-id-source: derived
  /loc/quote/{quote_id}:
    parameters:
    - name: quote_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - loc
      summary: Create a letter of credit from an existing quotation
      x-generated: true
      x-handler: loc.create_loc_from_quote
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postLocQuoteByQuoteId
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key (sp_live_xxx or sp_test_xxx)