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

# Resume a Mandate

> Reactivate a paused mandate.

Resume a paused mandate so it can create new charges again. The request takes no body and returns the updated [mandate](/api-reference/mandate-list).

`POST /v1/mandates/{id}/resume`

## Path parameters

<ParamField path="id" type="string" required>The mandate id.</ParamField>

## Response

Returns the updated mandate with `status: "active"`.

## Notes

* Only a `paused` mandate can be resumed. Any other transition returns `409 MANDATE_INVALID_TRANSITION`.
* Only the mandate's owner can act on it; a mismatched caller gets `403 MANDATE_FORBIDDEN`.

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://sandbox.api.prava.space/v1/mandates/mdt_123/resume \
    -H "Authorization: Bearer sk_test_..."
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://sandbox.api.prava.space/v1/mandates/mdt_123/resume",
      headers={"Authorization": "Bearer sk_test_..."},
  )
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://sandbox.api.prava.space/v1/mandates/mdt_123/resume", {
    method: "POST",
    headers: { Authorization: "Bearer sk_test_..." },
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 Success theme={null}
  { "id": "mdt_123", "status": "active", "state": "available", "merchantScope": "listed", "approvedAmount": "40.00", "currency": "USD" }
  ```

  ```json 409 Invalid Transition theme={null}
  {
    "error": { "code": "MANDATE_INVALID_TRANSITION", "message": "The mandate's current status forbids this action" }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml api-reference/openapi.json POST /v1/mandates/{id}/resume
openapi: 3.1.0
info:
  title: Prava Payments API
  description: >-
    Server-side REST API for Prava Payments. All requests are authenticated with
    your secret key (sk_test_* in sandbox, sk_live_* in production).
  version: 1.0.0
servers:
  - url: https://sandbox.api.prava.space
    description: Sandbox
  - url: https://api.prava.space
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/mandates/{id}/resume:
    post:
      summary: Resume a Mandate
      description: Reactivate a paused mandate.
      operationId: resumeMandate
      parameters:
        - name: id
          in: path
          required: true
          description: The mandate id.
          schema:
            type: string
      responses:
        '200':
          description: Updated mandate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mandate'
        '403':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
components:
  schemas:
    Mandate:
      type: object
      description: A standing spending authorization (list view).
      properties:
        id:
          type: string
          description: Mandate id (mdt_…).
        agentId:
          type: string
        customerId:
          type: string
        externalUserId:
          type: string
        state:
          type: string
          enum:
            - available
            - consumed
            - expired
            - paused
            - cancelled
            - pending
          description: Display-derived usability.
        status:
          type: string
          enum:
            - pending
            - active
            - paused
            - consumed
            - cancelled
            - expired
        recurringFrequency:
          type: string
          enum:
            - one_time
            - weekly
            - monthly
            - yearly
        merchantScope:
          type: string
          enum:
            - any
            - listed
        merchantName:
          type: string
        approvedAmount:
          type: string
          description: The authorized per-charge cap.
        remaining:
          type: string
          description: >-
            Remaining spend in the current window (indicative; the network
            enforces the real cap).
        currency:
          type: string
        validUntil:
          type: string
          format: date-time
          nullable: true
        renewsAt:
          type: string
          format: date-time
          nullable: true
          description: Next cycle boundary for recurring mandates.
        lastCharge:
          type: object
          nullable: true
          properties:
            status:
              type: string
            at:
              type: string
              format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code (e.g. VAL_2001, AUTH_1001)
            message:
              type: string
              description: Human-readable error message
            details:
              type: object
              description: >-
                Optional — included for validation errors to specify which
                fields failed
  responses:
    Error:
      description: Error response
      headers:
        X-Response-ID:
          $ref: '#/components/headers/XResponseId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    XResponseId:
      description: >-
        UUID correlation identifier for this response. Include it when
        contacting Prava support.
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your secret key: sk_test_* (sandbox) or sk_live_* (production).'

````