Link Search Menu Expand Document

Transações

Schema e Exemplos do postback de transação

Objetos

Transação Schema

#/properties/transaction#/properties/transaction

Tudo relacionado a transação está contido aqui

transaction Examples

{
  "objectType": "transaction",
  "transaction": {
    "id": "2278715",
    "status": "pending",
    "statusDesc": "Pendente",
    "orderType": "normal",
    "paymentMethod": "billet",
    "transactionId": "111333333",
    "authorizationCode": "111333333",
    "token": "qvdh7o4h74brcvtc4l2kgtof6q",
    "items": [
      {
        "id": 185917, // id produto
        "checkoutId": 145694, // id checkout
        "productName": "FB1",
        "description": "Descrição produto.",
        "productPrice": "189.00",
        "productShipping": 0,
        "productCover": "https://static.xpague.com/qvdh7o4h74brcvtc4l2kgtof6qfb.jpg",
        "productThumbnail": "https://static.xpague.com/qvdh7o4h74brcvtc4l2kgtof6qfb.jpg",
        "quantity": 1,
        "paymentMethods": [
          "credit",
          "billet"
        ],
        "url": "https://pagamento.xpague.com/id/185917?src=postback"
      }
    ],
    "total": "189.00",
    "thanksPage": "https://pagamento.xpague.com/b/678715", // pagina obrigado
    "fillableUrl": "https://pagamento.xpague.com/id/185917?fill=678715", // pagina do checkout com informações preenchidas
    "dateCreated": "2020-08-11 13:01:03",
    "dateUpdated": "2020-09-10 13:06:18",
    "billet": "https://pagamento.xpague.com/b/678715?em=1", // boleto html
    "billetPdf": "https://pagamento.xpague.com/b/678715?pd=1", // boleto pdf
    "barcode": "23793.38029 60834.110821 53006.333305 7 83470000018900", // linha digitável
    "barcodeRaw": "23793380296083411082153006333305783470000018900",
    "billetExpire": "2020-08-14 13:01:03" // expiração boleto
  },
  "customer": {
    "name": "lorem ipsum dolor",
    "email": "loremlps@gmail.com",
    "docType": "cpf",
    "doc": {
      "raw": "2213021211",
      "formatted": "22.130.212-11"
    },
    "phone": {
      "raw": "2211230640",
      "formatted": "(22) 1222-0640"
    },
    "address": {
      "address": "Av 25 de março ",
      "number": "2211",
      "complementary": "922211",
      "neighborhood": "Centro",
      "zipcode": "11111111",
      "city": "São Paulo",
      "state": "SP",
      "country": "br"
    },
    "token": "qvdh7o4h74brcvtc4l2kgtof6q" 
  }
}

Objeto da transação Properties

PropertyTypeRequiredNullableDefined by
idstringRequiredcannot be nullXPague postback
statusstringRequiredcannot be nullXPague postback
statusDescstringRequiredcannot be nullXPague postback
orderTypestringRequiredcannot be nullXPague postback
paymentMethodstringRequiredcannot be nullXPague postback
transactionIdstringRequiredcannot be nullXPague postback
authorizationCodestringRequiredcannot be nullXPague postback
tokenstringRequiredcannot be nullXPague postback
itemsarrayRequiredcannot be nullXPague postback
totalstringRequiredcannot be nullXPague postback
thanksPagestringRequiredcannot be nullXPague postback
fillableUrlstringRequiredcannot be nullXPague postback
dateCreatedstringRequiredcannot be nullXPague postback
dateUpdatedstringRequiredcannot be nullXPague postback
billetstringRequiredcannot be nullXPague postback
billetPdfstringRequiredcannot be nullXPague postback
barcodestringRequiredcannot be nullXPague postback
barcodeRawstringRequiredcannot be nullXPague postback
billetExpirestringRequiredcannot be nullXPague postback
Additional PropertiesAnyOptionalcan be null 

id

id do pedido

id

status

Status da transação

status

Status Examples

"pending"
"approved"
"rejected"
"cancelled" // um mês após a expiração
"in_process"

statusDesc

Descrição do status

statusDesc

statusDesc Type

string (Statusdesc)

statusDesc Constraints

minimum length: the minimum number of characters for this string is: 0

statusDesc Examples

"Data de vencimento do cartão incorreta"
"Número do cartão incorreto"

orderType

Tipo do pedido.

orderType

orderType Type

string (Ordertype)

orderType Constraints

minimum length: the minimum number of characters for this string is: 0

orderType Default Value

The default value is:

"normal"

orderType Examples

"normal" 
"upsell" // upsell
"callsell" /// televendas

paymentMethod

Método de pagamento

paymentMethod

paymentMethod Type

string (Paymentmethod)

paymentMethod Constraints

minimum length: the minimum number of characters for this string is: 0

paymentMethod Examples

"billet"
"creidt"

transactionId

Número da transação, apartir do processador de pagamentos

transactionId

transactionId Type

string (Transactionid)

transactionId Constraints

minimum length: the minimum number of characters for this string is: 0

transactionId Examples

"173575628"

authorizationCode

Código de autorizaçao, apartir do processador de pagamentos

authorizationCode

authorizationCode Type

string (Authorizationcode)

authorizationCode Constraints

minimum length: the minimum number of characters for this string is: 0

authorizationCode Examples

"173575628"

token

Token de sessão do cliente

token

token Type

string (Token)

token Constraints

minimum length: the minimum number of characters for this string is: 0

token Examples

"cd033ef874716ba5a7c57cbab5f95029"

items

produtos no pedido

items

items Type

object[] (Items)

items Constraints

minimum number of items: the minimum number of items for this array is: 0

items Default Value

The default value is:

[]

total

Total do pedido

total

total Type

string (Total)

total Constraints

minimum length: the minimum number of characters for this string is: 0

total Examples

"149.00"

thanksPage

Página de obrigado

thanksPage

thanksPage Type

string (Thankspage)

thanksPage Constraints

minimum length: the minimum number of characters for this string is: 0

thanksPage Examples

"https://pagamento.xpague.com/b/208180"

fillableUrl

Página do checkout com as informações preenchidas

fillableUrl

fillableUrl Type

string (Fillableurl)

fillableUrl Constraints

minimum length: the minimum number of characters for this string is: 0

fillableUrl Examples

"https://pagamento.xpague.com/id/185917?src=postback&fill=208180"

dateCreated

Data de criação do pedido

dateCreated

dateCreated Type

string (Datecreated)

dateCreated Constraints

minimum length: the minimum number of characters for this string is: 0

dateCreated Examples

"2020-03-20 11:19:26"

dateUpdated

Data de atualização do pedido

dateUpdated

dateUpdated Type

string (Dateupdated)

dateUpdated Constraints

minimum length: the minimum number of characters for this string is: 0

dateUpdated Examples

"2020-03-20 14:19:27"

billet

Url do boleto em html

billet

billet Type

string (Billet)

billet Constraints

minimum length: the minimum number of characters for this string is: 0

billet Examples

"https://pagamento.xpague.com/b/208180?em=1"

billetPdf

URL do boleto em pdf

billetPdf

billetPdf Type

string (Billetpdf)

billetPdf Constraints

minimum length: the minimum number of characters for this string is: 0

billetPdf Examples

"https://pagamento.xpague.com/b/208180?pd=1"

barcode

Código de barras com máscara

barcode

barcode Type

string (Barcode)

barcode Constraints

minimum length: the minimum number of characters for this string is: 0

barcode Examples

"23791.22928 60004.715383 92000.046901 4 82030000014900"

barcodeRaw

Código de barras sem máscara

barcodeRaw

barcodeRaw Type

string (Barcoderaw)

barcodeRaw Constraints

minimum length: the minimum number of characters for this string is: 0

barcodeRaw Examples

"23791229286000471538392000046901482030000014900"

billetExpire

Expiração do boleto

billetExpire

billetExpire Type

string (Billetexpire)

billetExpire Constraints

minimum length: the minimum number of characters for this string is: 0

billetExpire Examples

"2020-03-23 03:00:00"