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

# Create a destination from a recipient

> Resolves a saved recipient into a destination you can spend. Omit `paymentDetailId` to use the recipient’s default. Like every destination, the result expires after 24 hours and can be spent once.

This is the short path for a recipient you have already saved: no routing fields, no re-verification of what you sent last time.

A recipient with no payment details at all cannot produce a destination — `409 recipient_payment_detail_required`. Add a detail first.

## Legacy details

A payment detail whose routing values live at the provider rather than with Sakawave is marked `providerLocked`. Sakawave will try to resolve it; when it cannot, you get `409 payment_detail_provider_locked` and the fix is to delete that detail and add it again with its routing fields.

## Error codes

| Status | `code` | Cause |
| - | - | - |
| `400` | `validation_failed` | An identifier is not a ULID. |
| `404` | `payment_detail_not_found` | The named detail does not belong to this recipient. |
| `409` | `recipient_payment_detail_required` | The recipient has no payment detail to use. |
| `409` | `payment_detail_provider_locked` | A legacy detail that must be re-entered before it can be used. |
| `409` | `payment_detail_incomplete` | The stored detail is missing routing data the route needs. |
| `409` | `currency_capability_unavailable` | The destination currency is closed for external transfers. |
| `409` | `transfer_provider_unavailable` | No provider is currently bound to the route. |
| `422` | `recipient_profile_incomplete` | The saved recipient is missing `relationship`, `email`, `address.line1`, `address.city`, or `address.country`. Every missing field is listed in `errors`. |
| `503` | `provider_unavailable` | The provider could not be reached. Retry shortly. |
| `401` | `INVALID_API_KEY` | The key is missing, invalid, inactive, expired, from the other environment, or blocked by its IP allowlist. |
| `404` | `recipient_not_found` | No such recipient for this business, or it has been deleted. |
| `429` | `api_key_rate_limit_exceeded` | The per-minute limit for this key was exceeded. All of these operations share a 120-per-minute allowance. |


## OpenAPI

````yaml /openapi.json post /v1/transfer-destinations/recipients/{recipientId}
openapi: 3.1.0
info:
  title: Sakawave Business API
  version: 1.0.0-draft
  summary: >-
    Accounts, transfers, FX quotes, and transaction reconciliation for Sakawave
    businesses.
  description: >-
    Generated from the public NestJS controllers and their Zod request schemas.
    Public URLs and policy statements remain draft until the Phase 1 contract
    checklist is approved.
  contact:
    name: Sakawave API Support
    email: api-support@sakawave.example
servers:
  - url: https://sandbox-api.sakawave.example
    description: Sandbox (default)
  - url: https://api.sakawave.example
    description: Live
security:
  - bearerAuth: []
tags:
  - name: Bill payments
    description: Browse the biller catalog, validate a customer, and pay a bill.
  - name: Cards
    description: Issue, fund, and control USD virtual and disposable cards.
  - name: eSIM
    description: >-
      Sell mobile data abroad: browse the catalog, buy an eSIM, and manage it
      once installed.
  - name: Currencies and countries
    description: >-
      Reference data: what may be held, what may be sent where, and which
      jurisdictions are served.
  - name: Customers
    description: Create and manage customers of your business.
  - name: Accounts
    description: >-
      Open business and customer accounts, and issue the destinations that fund
      them.
  - name: Transfer destinations
    description: Resolve temporary destinations and saved recipients.
  - name: FX quotes
    description: Create and retrieve time-limited cross-currency quotes.
  - name: Transfers
    description: Preview, create, and monitor transfers.
  - name: Transactions
    description: Read ledger entries for reconciliation.
paths:
  /v1/transfer-destinations/recipients/{recipientId}:
    post:
      tags:
        - Transfer destinations
      summary: Create a destination from a recipient
      description: >-
        Resolves a saved recipient into a destination you can spend. Omit
        `paymentDetailId` to use the recipient’s default. Like every
        destination, the result expires after 24 hours and can be spent once.
      operationId: createRecipientDestination
      parameters:
        - name: recipientId
          in: path
          required: true
          description: Saved recipient ULID.
          schema:
            $ref: '#/components/schemas/Ulid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                paymentDetailId:
                  $ref: '#/components/schemas/Ulid'
                  description: >-
                    Which saved detail to use. Defaults to the recipient’s
                    default detail.
            example:
              paymentDetailId: 01K2Z3AB4Q5R6S7T8VWXYZABCD
      responses:
        '201':
          description: Successful response.
          headers:
            X-Request-ID:
              description: >-
                The request identifier assigned by Sakawave. Include it in
                support requests.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationResponse'
              example:
                id: 01K2Z3AB4F5G6H7J8KMNPQRSTV
                type: external
                currency: NGN
                displayName: Treasury NGN
                routeId: null
                recipientId: 01K2Z3AB4G5H6J7K8MNPQRSTVW
                institutionName: null
                accountNumberLast4: null
                expiresAt: '2026-08-15T09:05:00.000Z'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '409':
          $ref: '#/components/responses/ConflictError'
        '422':
          $ref: '#/components/responses/UnprocessableError'
        '429':
          $ref: '#/components/responses/RateLimitError'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/ProviderUnavailableError'
      security:
        - bearerAuth: []
components:
  schemas:
    Ulid:
      type: string
      minLength: 26
      maxLength: 26
      pattern: ^[0-7][0-9A-HJKMNP-TV-Z]{25}$
      example: 01K2Z3AB4C5D6E7F8G9HJKMNPQ
      description: A 26-character ULID.
    DestinationResponse:
      type: object
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/Ulid'
          description: Send this as destinationId when previewing or creating a transfer.
        type:
          type: string
          enum:
            - own_account
            - sakawave_tag
            - external
        currency:
          $ref: '#/components/schemas/DestinationCurrency'
        displayName:
          type: string
          description: >-
            The verified account name for an external destination, the account
            name for your own, or the resolved holder for a tag.
        routeId:
          anyOf:
            - $ref: '#/components/schemas/Ulid'
              description: The payout route, for external destinations.
            - type: 'null'
        recipientId:
          anyOf:
            - $ref: '#/components/schemas/Ulid'
              description: The saved recipient this was built from, when it was.
            - type: 'null'
        institutionName:
          anyOf:
            - type: string
            - type: 'null'
        accountNumberLast4:
          anyOf:
            - type: string
              minLength: 4
              maxLength: 4
              description: The only part of the destination account number ever returned.
            - type: 'null'
        expiresAt:
          $ref: '#/components/schemas/IsoTimestamp'
      required:
        - id
        - type
        - currency
        - displayName
        - routeId
        - recipientId
        - institutionName
        - accountNumberLast4
        - expiresAt
    DestinationCurrency:
      type: string
      enum:
        - NGN
        - USD
        - GBP
        - EUR
        - GHS
        - ZAR
        - UGX
        - CAD
        - MXN
        - AED
        - AUD
        - SGD
        - HKD
        - KES
        - TZS
        - BRL
        - CNY
        - XAF
        - PHP
        - USDC
    IsoTimestamp:
      type: string
      format: date-time
      example: '2026-08-14T09:00:00.000Z'
    RequestError:
      anyOf:
        - $ref: '#/components/schemas/ValidationError'
        - $ref: '#/components/schemas/Error'
      description: >-
        Either a field-level validation failure carrying an errors array, or a
        rule the request broke, identified by code.
    Error:
      type: object
      additionalProperties: true
      properties:
        statusCode:
          type: integer
        message:
          type: string
          description: >-
            A sentence suitable for a log or a support conversation, not for a
            user interface.
        code:
          type: string
          description: >-
            The stable machine-readable reason. Branch on this, never on the
            message.
      required:
        - message
        - code
      description: >-
        An error body. Individual errors may add context fields alongside these
        three.
    UnprocessableError:
      type: object
      additionalProperties: true
      properties:
        statusCode:
          const: 422
        message:
          type: string
        code:
          type: string
          enum:
            - payment_detail_invalid
            - recipient_profile_incomplete
          description: >-
            Present on validation refusals. Absent on tier denials, which carry
            `reason` instead.
        reason:
          type: string
          enum:
            - daily_outflow_limit_exceeded
            - wallet_cap_exceeded
          description: Present on tier denials.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationFailure'
        currency:
          $ref: '#/components/schemas/AssetCode'
        currentTier:
          type: integer
          enum:
            - 1
            - 2
            - 3
        limit:
          type: integer
          description: The allowance, in minor units.
        spentToday:
          type: integer
          description: Already spent inside the current daily window, in minor units.
        remaining:
          type: integer
          description: What is left of the allowance, in minor units.
        attempted:
          type: integer
          description: What this request asked for, in minor units.
      required:
        - statusCode
        - message
      description: >-
        A refusal the caller can act on. Individual reasons add context fields
        alongside these.
    RateLimitError:
      type: object
      additionalProperties: false
      properties:
        statusCode:
          const: 429
        message:
          type: string
        code:
          const: api_key_rate_limit_exceeded
        retryAfterSeconds:
          type: integer
          minimum: 1
      required:
        - statusCode
        - message
        - code
        - retryAfterSeconds
    ValidationError:
      type: object
      additionalProperties: false
      properties:
        statusCode:
          const: 400
        message:
          type: string
          description: The single failure, or a count when more than one field failed.
        code:
          const: validation_failed
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationFailure'
      required:
        - statusCode
        - message
        - code
        - errors
    ValidationFailure:
      type: object
      additionalProperties: false
      properties:
        message:
          type: string
        field:
          type: string
        code:
          type: string
        path:
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
      required:
        - message
        - field
        - code
        - path
    AssetCode:
      type: string
      enum:
        - NGN
        - USD
        - GBP
        - EUR
        - GHS
        - ZAR
        - UGX
        - CAD
        - MXN
        - AED
        - BTC
        - ETH
        - USDT
        - USDC
  responses:
    ValidationError:
      description: >-
        The request was rejected before it was acted on. Field failures list
        every failing field.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RequestError'
          example:
            statusCode: 400
            message: Must be a valid identifier.
            code: validation_failed
            errors:
              - message: Must be a valid identifier.
                field: accountId
                code: custom
                path:
                  - accountId
    AuthenticationError:
      description: >-
        The API key is missing, invalid, inactive, expired, for another
        environment, or blocked by its IP allowlist.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            code: INVALID_API_KEY
            message: Invalid or inactive API credentials.
    NotFoundError:
      description: The requested resource was not found for this business.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 404
            code: resource_not_found
            message: Resource not found.
    ConflictError:
      description: The request conflicts with the current resource state.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 409
            code: resource_conflict
            message: The request conflicts with the current resource state.
    UnprocessableError:
      description: The request was well formed but cannot be acted on.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnprocessableError'
          example:
            statusCode: 422
            message: Payment detail validation failed.
            code: payment_detail_invalid
            errors:
              - message: Account number is required.
                field: accountNumber
                code: required
                path:
                  - fields
                  - accountNumber
    RateLimitError:
      description: The API key rate limit was exceeded.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          example:
            statusCode: 429
            message: Too many API requests. Try again later.
            code: api_key_rate_limit_exceeded
            retryAfterSeconds: 17
    ServerError:
      description: An unexpected server error occurred.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 500
            code: internal_server_error
            message: An unexpected error occurred.
    ProviderUnavailableError:
      description: >-
        A payment provider could not be reached. The request had no effect;
        retry shortly.
      headers:
        X-Request-ID:
          description: >-
            The request identifier assigned by Sakawave. Include it in support
            requests.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 503
            code: provider_unavailable
            message: We could not issue an account number just now. Try again shortly.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sakawave API key
      description: >-
        A secret API key, sent as `Authorization: Bearer sk_test_…` in sandbox
        or `Bearer sk_live_…` in live.

````

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