Sendpaper Orders API

The Orders API from Sendpaper — 3 operation(s) for orders.

GitHub OpenAPI

Operations 3

GET /orders/{id} Retrieve an order #
POST /orders/{id}/cancel Cancel an unpaid order #
POST /orders/{id}/pay Pay with an agent 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/sendmypaper-com:sendmypaper-com-orders-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

sendmypaper-com-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sendmypaper Com Orders API
  version: 1.0.0
  description: 'Operations tagged Orders across 2 of this provider''s published API definitions: sendmypaper-com-docs-openapi.json, sendmypaper-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://sendmypaper.com/v1
tags:
- name: Orders
paths:
  /orders/{id}:
    get:
      summary: Retrieve an order
      description: 'Look up an order by id: status, price, preview and checkout links, event history, and the USPS tracking number for certified letters once one is assigned.'
      operationId: getOrder
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: ord_8k2m4qz7c1x9b3vd
      responses:
        '200':
          description: Order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '404':
          $ref: '#/components/responses/NotFound'
      tags:
      - Orders
    servers:
    - url: https://sendmypaper.com/v1
  /orders/{id}/cancel:
    post:
      summary: Cancel an unpaid order
      description: Only orders in `awaiting_payment` can be cancelled here. For paid orders, email support before printing.
      operationId: cancelOrder
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Cancelled order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Order is already paid or closed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Orders
    servers:
    - url: https://sendmypaper.com/v1
  /orders/{id}/pay:
    post:
      summary: Pay with an agent token
      description: 'Pay an unpaid order with a Stripe shared payment token (`spt_…`) the user approved, scoped to at least the order amount in USD. Safe to retry with the same token.


        For an order that belongs to a batch, this charges one token for every unpaid order in the batch; scope the token to the batch total.'
      operationId: payOrder
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - shared_payment_token
              properties:
                shared_payment_token:
                  type: string
                  example: spt_1Q...
      responses:
        '200':
          description: Paid order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '402':
          description: Token rejected (token_amount, token_inactive, token_currency, requires_action, payment_failed)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Order already paid or closed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
      tags:
      - Orders
    servers:
    - url: https://sendmypaper.com/v1
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              example: invalid_request
            message:
              type: string
            fields:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
    Address:
      type: object
      required:
      - name
      - line1
      - city
      - state
      - zip
      properties:
        name:
          type: string
          maxLength: 60
        company:
          type: string
          maxLength: 60
        line1:
          type: string
          maxLength: 64
          description: Street address
        line2:
          type: string
          maxLength: 64
          description: Apartment, suite, unit
        city:
          type: string
          maxLength: 40
        state:
          type: string
          description: Two-letter US state or territory code
          example: CA
        zip:
          type: string
          pattern: ^\d{5}(-\d{4})?$
          example: '94105'
      description: A US address (recipients are always in the US, including territories and APO/FPO/DPO).
    Order:
      type: object
      properties:
        id:
          type: string
          example: ord_8k2m4qz7c1x9b3vd
        object:
          type: string
          enum:
          - postcard
          - letter
        product:
          type: string
          enum:
          - postcard_4x6
          - postcard_6x9
          - postcard_6x11
          - letter
          - letter_certified
          - letter_certified_rr
        status:
          type: string
          enum:
          - awaiting_payment
          - paid
          - printing
          - mailed
          - cancelled
          - refunded
        status_detail:
          type: string
        price:
          type: object
          properties:
            amount_cents:
              type: integer
            currency:
              type: string
            display:
              type: string
        to:
          $ref: '#/components/schemas/Address'
        from:
          $ref: '#/components/schemas/SenderAddress'
        content:
          type: object
        checkout_url:
          type:
          - string
          - 'null'
          description: Where the person pays. Null once paid or closed. Never expires.
        order_url:
          type: string
          description: Human-readable status page
        preview_url:
          type: string
          description: Exact print preview
        created_at:
          type: string
          format: date-time
        paid_at:
          type:
          - string
          - 'null'
          format: date-time
        mailed_at:
          type:
          - string
          - 'null'
          format: date-time
        events:
          type: array
          items:
            type: object
            properties:
              at:
                type: string
              status:
                type: string
              note:
                type: string
        certified:
          type: string
          enum:
          - none
          - certified
          - certified_return_receipt
          description: 'Letters only: the USPS extra service.'
        tracking:
          type:
          - object
          - 'null'
          description: USPS tracking once the piece is accepted (certified letters always get one).
          properties:
            number:
              type: string
            url:
              type: string
              format: uri
        batch_id:
          type:
          - string
          - 'null'
          description: Set when the order is part of a batch (created with `recipients`). Its checkout_url is then the batch's single payment link.
    SenderAddress:
      type: object
      required:
      - name
      - line1
      - city
      description: 'Return address. It may be outside the US: set `country`. For a US address (no `country`, or `US`), `state` and `zip` are required and follow the US rules; elsewhere `state` is the region and `zip` the postcode, both optional.'
      properties:
        name:
          type: string
          maxLength: 60
        company:
          type: string
          maxLength: 60
        line1:
          type: string
          maxLength: 64
          description: Street address
        line2:
          type: string
          maxLength: 64
          description: Apartment, suite, unit
        city:
          type: string
          maxLength: 40
          description: City or town
        state:
          type: string
          maxLength: 40
          description: 'US: two-letter state or territory code (required). Elsewhere: region, county or province, if any'
          example: CA
        zip:
          type: string
          maxLength: 12
          description: 'US: 5-digit ZIP or ZIP+4 (required). Elsewhere: postcode'
          example: '94105'
        country:
          type: string
          pattern: ^[A-Za-z]{2}$
          default: US
          description: Two-letter ISO 3166-1 country code of the return address, e.g. GB. Defaults to US. US territories use US with their state code.
          example: GB
  responses:
    NotFound:
      description: No such order
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
x-refined-from:
- sendmypaper-com-docs-openapi.json
- sendmypaper-com-openapi.json