Create recurring payment with tokenized card

It is possible to create a recurring transaction with a credit card that is already stored (tokenized).

Payment method accepted: credit card.

Request

EnvironmentMethodEndpoint
Sandboxhttps://apisandbox.cieloecommerce.cielo.com.br/1/sales/
Productionhttps://api.cieloecommerce.cielo.com.br/1/sales/
{
  "MerchantOrderId": "Loja123456",
  "Customer": {
    "Name": "Aline de Souza"
  },
  "Payment": {
    "Type": "CreditCard",
    "Amount": 1500,
    "Installments": 1,
    "Capture": true,
    "RecurrentPayment": {
      "AuthorizeNow": "true",
      "EndDate": "2030-10-01",
      "Interval": "Monthly"
    },
    "CreditCard": {
      "CardToken": "4086baad-a31c-48b9-830d-8596bfe9c33c",
      "Brand": "Visa",
      "SecurityCode": "123",
    }
  }
}

Parameters in header

Parameters in body

ParameterTypeSizeRequiredDescription
MerchantOrderIdOrder identification number. Warning: Allowed characters are a-z, A-Z, 0-9. Special characters and blank spaces are not allowed.Text50Yes
Customer.NameCustomer's name.Text255Yes
Payment.TypeType of the payment method.Text100Yes
Payment.AmountOrder Amount (to be sent in cents).Number15Yes
Payment.InstallmentsNumber of installments. If the transaction is a recurrence, the number of installments will be 1.Number2Yes
Payment.CaptureBoolean that identifies if the authorization should be done by Authomatic capture (true) or posterior capture (false).Boolean-No (default: false)
Payment.SoftDescriptorThe store's name that will be on the shopper's bank invoice. Does not allow special characters.Text13No
Payment.RecurrentPaymentIndicates that a transaction has its own recurrence.Boolean5Yes* |
CreditCard.CardNumberShopper's card number.Text19Yes
CreditCard.HolderName of the shopper that's printed on the card.Text25Yes
CreditCard.ExpirationDateExpiration date printed on the card. Example: MM/AAAA.Text7Yes
CreditCard.SecurityCodeSecurity code printed on the back of the card.Text4No
CreditCard.BrandCard brand. Possible values: Visa / Master / Amex / Elo / Aura / JCB / Diners / Discover / Hipercard / Hiper.Text10Yes

Response

{
  "MerchantOrderId": "Loja123456",
  "Customer": {
    "Name": "Aline de Souza"
  },
  "Payment": {
    "Installments": 1,
    "Capture": true,
    "CreditCard": {
      "CardToken": "4086baad-a31c-48b9-830d-8596bfe9c33c",
      "Brand": "Visa",
      "SecurityCode": "123",
    },
    "ProofOfSale": "3827556",
    "Tid": "0504043827555",
    "AuthorizationCode": "149867",
    "PaymentId": "737a8d9a-88fe-4f74-931f-acf81149f4a0",
    "Type": "CreditCard",
    "Amount": 1500,
    "Currency": "BRL",
    "Country": "BRA",
    "Provider": "Simulado",
    "ExtraDataCollection": [],
    "Status": 1,
    "ReturnCode": "4",
    "ReturnMessage": "Operation Successful",
    "RecurrentPayment": {
      "RecurrentPaymentId": "61e5bd30-ec11-44b3-ba0a-56fbbc8274c5",
      "NextRecurrency": "2025-03-04",
      "EndDate": "2030-12-01",
      "Interval": "Monthly",
      "Link": {
        "Method": "GET",
        "Rel": "recurrentPayment",
        "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/RecurrentPayment/{RecurrentPaymentId}"
      },
      "AuthorizeNow": true
    },
    "Links": [
      {
        "Method": "GET",
        "Rel": "self",
        "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/{PaymentId}"
      },
      {
        "Method": "PUT",
        "Rel": "void",
        "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/{PaymentId}/void"
      }
    ]
  }
}