Pular para o conteúdo

Appmax - Checkout

Eventos da familia checkout.* na integracao Appmax.

Eventos Disponiveis

  • checkout.abandoned - Checkout abandonado

Estrutura do Payload

{
"customer": {
"id": null,
"name": "João Silva",
"email": "[email protected]",
"document": "12345678900",
"phone_numbers": [
{
"formatted_phone": "+5511999999999",
"type": null,
"raw_number": "999999999",
"area_code": null,
"international_dialing_code": null
}
],
"address": {
"street": "Rua Principal",
"number": "123",
"complement": "Apto 45",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP",
"country": null,
"postal_code": "01000-000"
}
},
"checkout": {
"id": "checkout_abc123",
"url": "https://checkout.appmax.com.br/abc123"
},
"payment": {
"currency": "BRL",
"total": 29900,
"discount_value": 0,
"shipping_value": 0,
"total_products_value": 29900,
"payment_method": {
"type": "credit_card",
"brand": "visa",
"last_digits": null,
"expiration_month": null,
"expiration_year": null
},
"coupons": []
},
"shipping": {
"carrier": null,
"total_value": 0,
"tracking_url": null,
"tracking_code": null,
"method": null,
"delivery_address": {
"street": "Rua Principal",
"number": "123",
"complement": "Apto 45",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP",
"country": null,
"postal_code": "01000-000"
},
"estimated_delivery_date": null,
"estimated_delivery_time_in_days": null,
"status": null,
"raw_status": null
},
"products": [
{
"id": "prod_789",
"name": "Produto Exemplo",
"type": "product",
"quantity": 1,
"unit_value": 29900,
"total_value": 29900,
"image_url": "https://example.com/product.jpg",
"offer_type": "main"
}
],
"lead_tracking": {
"src": null,
"sck": null,
"utm_source": "facebook",
"utm_campaign": "black_friday",
"utm_medium": "cpc",
"utm_content": null,
"utm_term": null,
"utm_id": null,
"meta_fbp": null,
"google_ga_id": null,
"google_gclid": null,
"google_gclsrc": null,
"google_dclid": null,
"google_gbraid": null,
"google_wbraid": null,
"tiktok_ttlid": null,
"ip": null
}
}

Componentes do Payload

Customer

CampoTipoDescricao
idstring | nullID do cliente
namestring | nullNome do cliente
emailstring | nullE-mail do cliente
documentstring | nullDocumento (CPF/CNPJ)
phone_numbersarrayLista de telefones
addressobjectEndereco

Phone Numbers

CampoTipoDescricao
formatted_phonestring | nullTelefone formatado em E.164
typenullSempre null
raw_numberstring | nullNumero sem formatacao
area_codenullSempre null
international_dialing_codenullSempre null

Address

CampoTipoDescricao
streetstring | nullNome da rua
numberstring | nullNumero
complementstring | nullComplemento
neighborhoodstring | nullBairro
citystring | nullCidade
statestring | nullEstado (sigla)
countrynullSempre null
postal_codestring | nullCEP

Checkout

CampoTipoDescricao
idstring | nullID do checkout
urlstring | nullURL do checkout

Payment

CampoTipoDescricao
currencystringSempre BRL
totalinteger | nullValor total em centavos
discount_valueinteger | nullValor do desconto em centavos
shipping_valueinteger | nullValor do frete em centavos
total_products_valueinteger | nullValor total dos produtos em centavos
payment_methodobject | nullMetodo de pagamento
couponsarraySempre []

Payment Method

O payment_method pode ser um dos seguintes tipos:

CampoTipoDescricao
typestringSempre credit_card
brandstring | nullBandeira do cartao
last_digitsnullSempre null
expiration_monthnullSempre null
expiration_yearnullSempre null
CampoTipoDescricao
typestringSempre boleto
expiration_dateinteger | nullTimestamp de vencimento do boleto
digitable_linestring | nullLinha digitavel do boleto
urlstring | nullURL para download do boleto
CampoTipoDescricao
typestringSempre pix
qrcode_urlstring | nullURL do QR Code PIX
qrcode_signaturestring | nullEMV do QR Code PIX
expiration_dateinteger | nullTimestamp de expiracao do PIX
pix_keynullSempre null
pix_key_typenullSempre null

Shipping

CampoTipoDescricao
carriernullSempre null
total_valueinteger | nullValor do frete em centavos
tracking_urlnullSempre null
tracking_codenullSempre null
methodstring | nullMetodo de envio
delivery_addressobjectEndereco de entrega
estimated_delivery_datenullSempre null
estimated_delivery_time_in_daysnullSempre null
statusnullSempre null
raw_statusnullSempre null

Delivery Address

CampoTipoDescricao
streetstring | nullNome da rua
numberstring | nullNumero
complementstring | nullComplemento
neighborhoodstring | nullBairro
citystring | nullCidade
statestring | nullEstado (sigla)
countrynullSempre null
postal_codestring | nullCEP

Product

CampoTipoDescricao
idstring | nullID ou SKU do produto
namestring | nullNome do produto
typestringSempre product
quantityinteger | nullQuantidade
unit_valueinteger | nullValor unitario em centavos
total_valueinteger | nullValor total em centavos
image_urlstring | nullURL da imagem
offer_typestringSempre main

LeadTracking

CampoTipoDescricao
srcnullSempre null
scknullSempre null
utm_sourcestring | nullUTM Fonte
utm_campaignstring | nullUTM Campanha
utm_mediumstring | nullUTM Midia
utm_contentstring | nullUTM Conteudo
utm_termstring | nullUTM Termo
utm_idnullSempre null
meta_fbpnullSempre null
google_ga_idnullSempre null
google_gclidnullSempre null
google_gclsrcnullSempre null
google_dclidnullSempre null
google_gbraidnullSempre null
google_wbraidnullSempre null
tiktok_ttlidnullSempre null
ipnullSempre null

Voltar para visao geral da integracao