8000 validate.sale_transaction should not force send Itbis parameter · Issue #9 · indexa-git/pyazul · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
validate.sale_transaction should not force send Itbis parameter #9
Closed
@manuelpgs

Description

According to Azul PDF documentation, the parameter "Itbis" is required, and it should be sent in the same format as "Amount" or as "0" if the transaction is exempt, but in the parameter description they say "or just don't include it in the request".

So, in my tests with some amount like "179900" Azul throw an error with "Itbis: 0", but if I don't include this parameter in the request, the answer is a success.

##Examples:

# Amount 179900 and Itbis 0
**Request:**
{"Channel": "EC",
"PosInputMode": "E-Commerce",
"TrxType": "Sale",
"CurrencyPosCode": "$",
"Payments": "1",
"Plan": "0",
"AcquirerRefData": "1",
"ECommerceUrl": "mysite.com",
"CustomerServicePhone": "8092201111",
"Store": "33333333333",
"CardNumber": "5426064000424979",
"Expiration": "202412",
"CVC": "979",
"Amount": "179900",
"Itbis": "0",
"CustomOrderId": "APT600f21fcc23f3",
"OrderNumber": "",
"SaveToDataVault": "1"}

Response:

{"AuthorizationCode":"","AzulOrderId":"","CustomOrderId":"","DataVaultBrand":"","DataVaultExpiration":"","DataVaultToken":"","DateTime":"20210125155521","ErrorDescription":"VALIDATION_ERROR:Itbis","IsoCode":"","LotNumber":"","RRN":"","ResponseCode":"Error","ResponseMessage":"","Ticket":""}

# Amount 179900 and excluding Itbis parameter

**Request:**
{"Channel": "EC",
"PosInputMode": "E-Commerce",
"TrxType": "Sale",
"CurrencyPosCode": "$",
"Payments": "1",
"Plan": "0",
"AcquirerRefData": "1",
"ECommerceUrl": "mysite.com",
"CustomerServicePhone": "8092201111",
"Store": "33333333333",
"CardNumber": "5426064000424979",
"Expiration": "202412",
"CVC": "979",
"Amount": "179900",
"CustomOrderId": "APT600f1c712f64f",
"OrderNumber": "",
"SaveToDataVault": "1"}

Response {"AuthorizationCode":"OK0902","AzulOrderId":"110823","CustomOrderId":"APT600f1c712f64f","DataVaultBrand":"MASTERCARD","DataVaultExpiration":"202412","DataVaultToken":"5E6AECEXCBC5-3BAF-48BA-AA6A-DB9EF3731918","DateTime":"20210125153056","ErrorDescription":"","IsoCode":"00","LotNumber":"","RRN":"20210125153059363940","ResponseCode":"ISO8583","ResponseMessage":"APROBADA","Ticket":"70"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0