---
updatedAt: 2026-06-19T15:38:21.000Z
agentTools:
  projectIndex: https://sticky.readme.io/llms.txt
---

# Recover v3

The Recovery endpoint allows merchants to fully delegate recovery to Sticky. Sticky handles the retry schedule, gateway resubmissions, and transaction orchestration automatically based on our optimized recovery logic.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Sticky Recovery Production and Sandbox",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.sticky.io",
      "description": "Production"
    },
    {
      "url": "https://sandbox-api.sticky.io",
      "description": "Sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key",
        "description": "API key used to authenticate requests."
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/processing-hub/v3/api/recovery/recover": {
      "post": {
        "description": "The Recovery endpoint allows merchants to fully delegate recovery to Sticky. Sticky handles the retry schedule, gateway resubmissions, and transaction orchestration automatically based on our optimized recovery logic.",
        "operationId": "post_processing-hubv2apirecoveryrecover",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "default": "RECOVERY_DRAFT"
                    },
                    "stickyTransactionId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "stickyTransactionId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "API-Key",
            "schema": {
              "type": "string"
            },
            "description": "API key used for authentication and authorization of API requests.",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paymentProfileId": {
                    "type": "string",
                    "description": "Identifier for the payment gateway profile to be used for recovery attempts."
                  },
                  "initiatedBy": {
                    "type": "string",
                    "description": "Indicates who initiated the transaction. Use CIT for customer-initiated and MIT for merchant-initiated transactions."
                  },
                  "isRecurring": {
                    "type": "boolean",
                    "description": "Boolean indicating whether the transaction is part of a recurring billing cycle."
                  },
                  "externalId": {
                    "type": "string",
                    "description": "An optional merchant-defined reference ID used to identify the transaction externally."
                  },
                  "dunningProfileId": {
                    "type": "string",
                    "description": "Identifier for the dunning (retry) strategy to be applied during payment recovery."
                  },
                  "billingAddress": {
                    "type": "object",
                    "description": "The billing address details associated with the payment.",
                    "properties": {
                      "address1": {
                        "type": "string",
                        "description": "Primary address line, including street and house/building number."
                      },
                      "address2": {
                        "type": "string",
                        "description": "Additional address details, such as apartment or suite number."
                      },
                      "city": {
                        "type": "string",
                        "description": "Name of the city for the address."
                      },
                      "state": {
                        "type": "string",
                        "description": "Name of the state or province for the address."
                      },
                      "country": {
                        "type": "string",
                        "description": "Name of the country for the address."
                      },
                      "zip": {
                        "type": "string",
                        "description": "Postal or ZIP code for the address."
                      }
                    }
                  },
                  "customer": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique identifier for the customer."
                      },
                      "firstName": {
                        "type": "string",
                        "description": "Customer's first name."
                      },
                      "lastName": {
                        "type": "string",
                        "description": "Customer's last name."
                      },
                      "email": {
                        "type": "string",
                        "description": "Customer's email address."
                      },
                      "phone": {
                        "type": "string",
                        "description": "Customer's phone number."
                      }
                    },
                    "description": "Unique identifier for the customer in the gateway."
                  },
                  "paymentMethod": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "string",
                        "description": "Use this field to override the amount of the original failed transaction. Value must be in the smallest currency unit (e.g., 1000 for $10.00)."
                      },
                      "currency": {
                        "type": "string",
                        "description": "Use this field to override the currency of the original failed transaction. Must be in ISO 4217 format (e.g., USD)."
                      },
                      "card": {
                        "type": "object",
                        "description": "Full card number (PAN) to be used for the recovery attempt.",
                        "properties": {
                          "cardNumber": {
                            "type": "string",
                            "description": "Card number used for the transaction."
                          },
                          "cardHolderName": {
                            "type": "string",
                            "description": "Name of the cardholder as it appears on the card."
                          },
                          "cvv": {
                            "type": "string",
                            "description": "Card verification value for authentication."
                          },
                          "expYear": {
                            "type": "string",
                            "description": "Expiration year of the card."
                          },
                          "expMonth": {
                            "type": "string",
                            "description": "Expiration month of the card."
                          }
                        },
                        "required": [
                          "expYear",
                          "expMonth",
                          "cardHolderName",
                          "cardNumber"
                        ]
                      },
                      "token": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Specifies the type of tokenization or token (e.g., CARD) associated with the payment request.",
                            "enum": [
                              "GATEWAY"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the tokenized payment method."
                          }
                        },
                        "description": "Token identifier linked to the customer’s stored payment method."
                      }
                    },
                    "description": "Specifies the payment method used for the transaction."
                  },
                  "originalTransaction": {
                    "type": "object",
                    "description": "Contains details of the initial transaction related to the current request.",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Gateway transaction ID of the original decline transaction used for payment recovery."
                      },
                      "amount": {
                        "type": "string",
                        "description": "Declined transaction amount in the smallest currency unit (e.g., 1000 for $10.00)."
                      },
                      "currency": {
                        "type": "string",
                        "description": "The currency of the declined transaction, represented in ISO 4217 format (e.g., USD for US Dollars)."
                      },
                      "declineReason": {
                        "type": "string",
                        "description": "Code or reason provided by the payment provider indicating the reason for payment failure. (e.g. \"Do Not Honor\" or \"Insufficient Funds\")"
                      },
                      "bin": {
                        "type": "string",
                        "description": "The Payment Account Number (PAN) or Bank Identification Number (BIN) is linked to the payment method and should consist of a minimum of 6 digits when utilized."
                      },
                      "responseCode": {
                        "type": "string",
                        "description": "Gateway Response Code indicating the reason for the transaction decline."
                      },
                      "avsResultCode": {
                        "type": "string",
                        "description": "Address Verification System (AVS) result code for the declined transaction."
                      },
                      "cvvResultCode": {
                        "type": "string",
                        "description": "Card Verification Value (CVV) result code for the declined transaction."
                      },
                      "cavvResultCode": {
                        "type": "string",
                        "description": "Cardholder Authentication Verification Value (CAVV) result code for the declined transaction."
                      },
                      "processorName": {
                        "type": "string",
                        "description": "Name of the payment processor handling the declined transaction."
                      },
                      "processorDeclineCode": {
                        "type": "string",
                        "description": "A numeric value (e.g., “51”, “05\") returned by the payment processor, not the gateway, indicating the standardized reason for decline per ISO 8583 (e.g., “51” = Insufficient Funds, “05\" = Do Not Honor)."
                      },
                      "networkAdviceCode": {
                        "type": "string",
                        "description": "An issuer-provided code that advises whether or not a declined transaction should be retried. Primarily used for Mastercard, this value helps optimize retry behavior by indicating if a retry should be avoided, delayed, or attempted using a different method."
                      },
                      "timestampUTC": {
                        "type": "string",
                        "description": "UTC timestamp indicating when the original transaction was declined, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), e.g., 2026-06-19T21:05:00Z."
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Indicates whether a failed transaction is recommended for retry. This value is provided by the processor or payment gateway based on their assessment of the decline reason and retry eligibility.",
                        "default": "true"
                      }
                    },
                    "required": [
                      "id",
                      "amount",
                      "currency",
                      "declineReason"
                    ]
                  },
                  "mitReferenceTransactionId": {
                    "type": "string",
                    "description": "Identifier linking the current transaction to a prior successful charge. Used to improve authorization for merchant-initiated transactions."
                  },
                  "mitReferenceSettlementDate": {
                    "type": "string",
                    "description": "The settlement date of the original successful transaction referenced by mitReferenceTransactionId. Required if mitReferenceTransactionId is included and the transaction is being submitted to Mastercard"
                  },
                  "billingStatementDescription": {
                    "type": "string",
                    "description": "Optional string to customize how the charge appears on the customer’s card statement. Use it to override the default descriptor set by your processor, if supported."
                  },
                  "subscriptionId": {
                    "type": "string",
                    "description": "Unique identifier for the subscription tied to this transaction. Useful for correlating recovery attempts with subscription lifecycle events."
                  },
                  "subscriptionStartDate": {
                    "type": "string",
                    "description": "Timestamp marking when the customer’s subscription first began billing."
                  },
                  "gatewayAdditionalInfo": {
                    "type": "object",
                    "properties": {
                      "gatewayReportingNumber": {
                        "type": "string",
                        "description": "The division or group number assigned by your payment provider to identify this transaction. Some providers may refer to it as a Division ID."
                      },
                      "sourceId": {
                        "type": "string",
                        "description": "A unique identifier that represents the origin of the transaction within the merchant’s ecosystem. The sourceId is typically used for reporting, analytics, and reconciliation purposes."
                      }
                    }
                  },
                  "priorAttemptCount": {
                    "type": "integer",
                    "description": "Indicates how many recovery attempts were already made by the merchant before sending the transaction to Sticky."
                  },
                  "priorDeclines": {
                    "type": "array",
                    "description": "Captures the reasons for the decline from previous recovery attempts performed by the merchant.",
                    "items": {
                      "properties": {
                        "declineReason": {
                          "type": "string",
                          "description": "Code or reason provided by the payment provider indicating the reason for payment failure. (e.g. \"Do Not Honor\" or \"Insufficient Funds\")"
                        },
                        "bin": {
                          "type": "string",
                          "description": "The Payment Account Number (PAN) or Bank Identification Number (BIN) is linked to the payment method and should consist of a minimum of 6 digits when utilized."
                        },
                        "responseCode": {
                          "type": "string",
                          "description": "Gateway Response Code indicating the reason for the transaction decline."
                        },
                        "avsResultCode": {
                          "type": "string",
                          "description": "Address Verification System (AVS) result code for the declined transaction."
                        },
                        "cvvResultCode": {
                          "type": "string",
                          "description": "Card Verification Value (CVV) result code for the declined transaction."
                        },
                        "cavvResultCode": {
                          "type": "string",
                          "description": "Cardholder Authentication Verification Value (CAVV) result code for the declined transaction."
                        },
                        "processorName": {
                          "type": "string",
                          "description": "Name of the payment processor handling the declined transaction."
                        },
                        "networkAdviceCode": {
                          "type": "string",
                          "description": "An issuer-provided code that advises whether or not a declined transaction should be retried. Primarily used for Mastercard, this value helps optimize retry behavior by indicating if a retry should be avoided, delayed, or attempted using a different method."
                        },
                        "processorDeclineCode": {
                          "type": "string",
                          "description": "A numeric value (e.g., “51”, “05\") returned by the payment processor, not the gateway, indicating the standardized reason for decline per ISO 8583 (e.g., “51” = Insufficient Funds, “05\" = Do Not Honor)."
                        },
                        "timeStampUTC": {
                          "type": "string",
                          "description": "UTC timestamp indicating when the original transaction was declined, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), e.g., 2026-06-19T21:05:00Z."
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "required": [
                  "paymentProfileId",
                  "initiatedBy",
                  "isRecurring",
                  "originalTransaction",
                  "paymentMethod"
                ]
              }
            }
          }
        },
        "summary": "Recover v3"
      }
    }
  }
}
```