Broadleaf Microservices
  • v1.0.0-latest-prod

Pre-scoring

The first step to check that the Tabby payment can be used in checkout is Pre-scoring. It should be used when total amount, contact and shipping details are already known. See Pre-scoring.

Initiate pre-scoring using the following request:

curl --location 'https://myapp.com/api/payment/tabby/checkout/pre-scoring' \
--header 'X-Application-Token: {{app token}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ...' \
--data-raw '{
    "payment": {
        "amount": "100",
        "currency": "KWD",
        "buyer": {
            "phone": "+96590000001",
            "email": "card.success@tabby.ai",
            "name": "Test 1"
        },
        "shipping_address": {
            "city": "Test",
            "address": "Test 1",
            "zip": "12345"
        },
        "order": {
            "reference_id": "cart_id",
            "items": [{
              "category": "Category name",
              "quantity": 1,
              "title": "Test",
              "unit_price": "100"
            }],
         }
    },
    "lang": "en"
    "merchant_code": "..."
}'