# Create Merchant Retry

Use this API to retry mandate execution for a subscription when it is in the DEBIT FAILED stage. You can retry up to three times after all automatic retries have been exhausted.

> 📘 Note
>
> * Up to `3` retry attempts are allowed. Retries can be made only if `is_merchant_retry` is set to `true` in the Create Debit API.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "retry",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://pluraluat.v2.pinepg.in/ps/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/mandate/merchant-retry": {
      "post": {
        "summary": "Create Merchant Retry",
        "description": "Use this API to retry mandate execution for a subscription when it is in the DEBIT FAILED stage. You can retry up to three times after all automatic retries have been exhausted.",
        "operationId": "create-merchant-retry",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "The type of content included in the HTTP message body.<br><br>Possible value: `application/json`.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "The HTTP header where you can include your secret token for authentication.<br><br>Example: `Bearer <access_token>`<br><br>**Note**: Use the access token generated using our <a href=\"https://developer.pluralonline.com/v3.0/reference/generate-token\" target=\"_blank\">Generate Token API</a>.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer"
            }
          },
          {
            "name": "Request-Timestamp",
            "in": "header",
            "description": "Use ISO 8601 UTC Timestamp, to create a timestamp when the generate token is requested.<br><br>Example: `2024-07-09T07:57:08.022Z`",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Request-ID",
            "in": "header",
            "description": "Use a global unique identifier [GUID] for the request.<ul><li>Minimum: 1 characters.</li><li>Maximum: 50 characters</ul></li>Example: `c17ce30f-f88e-4f81-ada1-c3b4909ed235`",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "presentation_id": {
                    "type": "string",
                    "description": "**Either presentation_id or merchant_presentation_reference is Mandatory**.<br><br>A Unique identifier for the presentation provided by the Pine Labs Online.<ul><li>Maximum length: `50` characters.</ul></li>Example: `v1-pre-4405071524-aa-qlAtAf`"
                  },
                  "merchant_presentation_reference": {
                    "type": "string",
                    "description": "**Either presentation_id or merchant_presentation_reference is Mandatory**.<br><br>Unique identifier of the merchant presentation reference entered while creating a presentation.<ul><li>Minimum length: 1 character.</li><li>Maximum length: 50 characters.</ul></li>Example: `1234567890`"
                  }
                }
              },
              "examples": {
                "Merchant Retry": {
                  "value": {
                    "presentation_id": "v1-bil-250911093822-aa-i37gSm",
                    "merchant_presentation_reference": "1234567890"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```