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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Notificar fulfillment

> Adiciona fulfillments a um pedido para notificar os provedores de prevenção a fraude após o pagamento.

Este endpoint permite adicionar vários fulfillments a um pedido para notificar os provedores de prevenção a fraude. Todos os fulfillments informados serão adicionados aos que já existem.


## OpenAPI

````yaml openapi/pt-br/payments/notify-fulfillments.json POST /payments/{payment_id}/fulfillments
openapi: 3.1.0
info:
  title: payments
  version: 1.0.2
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /payments/{payment_id}/fulfillments:
    post:
      summary: Notificar fulfillment
      description: >-
        Notifica o status de fulfillment e os detalhes de envio de um pedido de
        pagamento.
      operationId: fulfillments
      parameters:
        - name: payment_id
          in: path
          required: true
          schema:
            type: string
          description: O identificador único do pagamento (MAX 64; MIN 36).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - status
                - fulfillments
              properties:
                status:
                  type: string
                  description: O status do fulfillment do pedido.
                  enum:
                    - PARTIAL
                    - COMPLETED
                    - REPLACEMENT
                    - CANCELED
                fulfillments:
                  type: array
                  description: Array de fulfillments
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        description: O identificador único do fulfillment (MAX 255; MIN 3)
                      type:
                        type: string
                        description: O tipo do fulfillment
                        enum:
                          - CUSTOM
                          - MILITARY
                          - ELECTRONIC
                          - EXPRESS
                          - STANDARD
                          - SCHEDULED
                          - ECONOMY
                          - PRIORITY
                          - SAME_DAY
                          - NEXT_DAY
                          - THIRD_DAY
                          - STORE_PICK_UP
                          - LOCKER_PICK_UP
                          - OTHER
                      status:
                        type: string
                        description: O status do fulfillment.
                        enum:
                          - PARTIAL
                          - COMPLETED
                          - REPLACEMENT
                          - CANCELED
                      description:
                        type: string
                        description: A descrição do fulfillment.  (MAX 255; MIN 3)
                      carriers:
                        type: array
                        description: >-
                          Array de transportadoras. Envie-o para todo
                          fulfillment: um fulfillment sem `carriers` é rejeitado
                          com 400 VALIDATION_ERROR. Um array vazio (`[]`) é
                          aceito.
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: >-
                                O identificador único da transportadora (MAX
                                255; MIN 3)
                            tracking_id:
                              type: array
                              description: >-
                                Identificadores de rastreamento da
                                transportadora (MAX 255; MIN 3 por item)
                              items:
                                type: string
                            tracking_url:
                              type: array
                              description: >-
                                URLs de rastreamento da transportadora (MAX 999;
                                MIN 1 por item)
                              items:
                                type: string
                            shipped_at:
                              type: string
                              description: >-
                                Data e hora de envio (RFC3339, por exemplo,
                                2024-11-20T15:00:00Z)
                              format: date-time
                            delivered_at:
                              type: string
                              description: >-
                                Data e hora de entrega (RFC3339, por exemplo,
                                2024-11-23T18:00:00Z)
                              format: date-time
                          required:
                            - id
                            - tracking_id
                            - tracking_url
                    required:
                      - id
                      - type
                      - status
                      - carriers
                carriers:
                  type: 'null'
                  description: 'Obsoleto: use `fulfillments[].carriers` no lugar'
            examples:
              Request Example:
                value:
                  status: PARTIAL
                  fulfillments:
                    - id: fulfillment-1
                      type: STANDARD
                      status: COMPLETED
                      description: Package delivered successfully.
                      carriers:
                        - id: UPS
                          tracking_id:
                            - TRK12345
                            - TRK67890
                          tracking_url:
                            - https://tracking.example.com/TRK12345
                            - https://tracking.example.com/TRK67890
                          shipped_at: '2024-11-20T15:00:00Z'
                          delivered_at: '2024-11-23T18:00:00Z'
              Empty Carriers:
                summary: Empty Carriers
                value:
                  status: PARTIAL
                  fulfillments:
                    - id: fulfillment-1
                      type: STANDARD
                      status: COMPLETED
                      description: Package delivered successfully.
                      carriers: []
      responses:
        '202':
          description: Aceito. A resposta não tem corpo.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      x-default: <Your public-api-key>
      name: public-api-key
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

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