Payment via credit card

Example of request for payment with Credit Card

{
  "reference_id": "string",
  "session_id": null,
  "amount": 22.9,
  "currency_type":"USDT",
  "type": "credit",
  "description": "2084657",
  "customer": {
    "name": "Teste",
    "type": "F",
    "email": "[email protected]",
    "phones": [
      {
        "area": "12",
        "number": "934567890"
      }
    ],
    "address": {
      "city": "Sao Paulo",
      "state": "SP",
      "number": 11,
      "street": "Rua Tabapua",
      "district": "Itaim Bibi",
      "postcode": "04003-030"
    },
    "lastname": "teste",
    "tax_document": "03723668054"
  },
  "payments": [
    {
      "type": "credit",
      "amount": 22.9,
      "credit_card": {
        "document": "69252889051",
        "card_number": "5458034586623329",
        "holder_name": "Teste teste",
        "installments": 1,
        "security_code": "802",
        "expiration_year": "25",
        "expiration_month": "01"
      }
    }
  ], 
  "qtd_dependents": 0,
  "capture_manual":0
}


Details and Information

FieldTypeRequiredInformation
reference_idstringnoOrder ID from your system
session_idstringyesSession ID for fingerprint (explained in the Transaction Session)
amountdecimalyesTotal order amount
currency_typestringnoCurrency type
typestringyesPayment type. Use "credit" for credit card. Possible values: credit, multi_credit, multi_ticket, ticket
descriptionstringnoOrder description (optional)
customerObjectyesCustomer data
customer.namestringyesCustomer's full name
customer.lastnamestringyesCustomer's last name
customer.emailstringyesCustomer's email
customer.tax_documentstringyesCustomer's CPF or CNPJ. Used for fraud analysis
customer.typestringyesCustomer type: "F" for individual, "J" for business
customer.phonesObjectyesCustomer phone data
customer.phones.areastringyesArea code with 2 digits
customer.phones.numberstringyesPhone number with 8 or 9 digits
customer.addressObjectyesCustomer address data
customer.address.postcodestringyes8-digit postal code
customer.address.streetstringyesStreet name
customer.address.numberstringyesAddress number
customer.address.complementstringnoAddress complement (optional)
customer.address.districtstringyesNeighborhood
customer.address.citystringyesCity
customer.address.statestringyesState (2-letter code)
shippingObjectnoShipping information (optional)
shipping.amountdecimalnoShipping amount (optional)
shipping.methodstringnoShipping method name (optional)
itemsArrayyesProduct data
items.n.namestringyesProduct name
items.n.qtyintyesProduct quantity
items.n.amountdecimalyesTotal value of product(s)
items.n.imagestringnoProduct image URL (optional)
items.n.linkstringnoProduct page URL (optional)
paymentsArrayyesPayment data
payments.reference_idstringnoPayment identifier
payments.amountdecimalyesPayment amount
payments.typestringyesPayment type: "credit" for credit card, "ticket" for boleto
payments.credit_cardObjectyesCredit card information
payments.credit_card.installmentsintyesNumber of installments
payments.credit_card.card_numberstringyesCredit card number
payments.credit_card.holder_namestringyesCardholder's name
payments.credit_card.expiration_monthstringyesExpiration month (2 digits)
payments.credit_card.expiration_yearstringyesExpiration year (4 digits)
payments.credit_card.security_codestringyesSecurity code
payments.credit_card.cpfstringyesCardholder's CPF
capture_manualbooleannoEnable manual payment capture


Example of response

{
    "success": true,
    "order": {
        "id": "f11f3170-f246-400d-9bf2-13c2d3ff01c0",
        "reference_id": "4000000010",
        "amount": "39.84",
        "type": "credit",
        "status": "ORDER_PAID",
        "description": "",
        "date_create": "2022-03-25 11:11:44",
        "customer": {
            "id": "F8F218AE-0077-4724-80A1-123404AD2917",
            "name": "Jose silva ",
            "tax_document": "00000000191",
            "type": "F",
            "email": "[email protected]",
            "address": {
                "postcode": "04533010",
                "street": "Rua Tabapuã",
                "number": "145",
                "complement": null,
                "district": "Itaim Bibi",
                "city": "São paulo",
                "state": "SP"
            }
        },
        "items": [
            {
                "name": "Tocha Hitachi para trabalho com corpo leve",
                "qty": 1,
                "unit_amount": "18.84",
                "image": "https://oregon-kitchen.lojadefault-shopaqpago.aqbank.io/media/catalog/product/cache/a2323c833ef4765e7544b8609e6c75c2/t/o/tool_7_1.jpg",
                "link": "https://oregon-kitchen.lojadefault-shopaqpago.aqbank.io/mecanico/hitachi-torch-work-light-body-only.html"
            }
        ],
        "shipping": {
            "id": "8aeeac8a-5643-4e41-9ad7-257149c556ed",
            "amount": "21.00",
            "method": "correios",
            "address": {
                "postcode": "04533010",
                "street": "Rua Tabapuã",
                "number": "145",
                "complement": null,
                "district": "Itaim Bibi",
                "city": "São Paulo",
                "state": "SP"
            }
        },
        "payments": [
            {
                "id": "f44fb146-24b8-4fd9-b833-2ef444267d0m",
                "reference_id": null,
                "amount": "39.84",
                "type": "credit",
                "email": "[email protected]",
                "payment_multi": false,
                "status": "succeeded",
                "message": "payment processed.",
                "installments": "1",
                "created_at": "2022-03-25 11:11:44",
                "payment_date": "2022-03-25 11:11:46",
                "credit_card": {
                    "id": "e5ba8d8e-dbc2-4084-88f1-98d48c0f6421",
                    "type_card": "credit",
                    "flag": "MasterCard",
                    "first4_digits": "5577",
                    "last4_digits": "6630",
                    "holder_name": "Jose silva",
                    "expiration_month": "03",
                    "expiration_year": "2024"
                }
            }
        ]
    }
}