Skip to main content

Offers [v3]

This API returns a list of offers according to the payment modes

Request Body required
    order_id string required

    The order_id for which the payment is being made

    payment_mode_code string required

    This is the payment mode code chosen by the customer to pay for your order


    card_input_type string

    Possible values: [card_pan, merchant_network_token, nimbbl_token_id]

    This field specifies whether the transaction will be performed via plain card, network token or using nimbbl token


    card object

    This object will have the details of the plain card

    card_no string

    This is the card number typically between 15-19 digits, you should only pass this from your server if you are PCI-DSS certified

    expiry string

    This expiry date of the card, it should be of the current month or future. You should only pass this from your server if you are PCI-DSS certified

    card_holder_name string

    This is the name of the card holder, you should only pass this from your server if you are PCI-DSS certified

    cvv string

    This is a 3 or 4 digit number provided at the back of the card, you should only pass this from your server if you are PCI-DSS certified

    save_card boolean

    This is an optional field and will be used to create a card token for the card details passed in the payload. The saved card will be returned in the Payment modes API.

    card_label string

    This is an optional field used to provide the name for the saved card token

    card_details string

    If you don't have PCI-DSS, you can always encrypt the card details on your client and send us the encrypted string in this key.

    Steps for encryption

    1. Get the Nimbbl Public key for encryption. To get the Nimbbl public key reach out to us at help@nimbbl.biz.
    2. Format the Card details in the format : {"card_no":"4111111111111111","cvv":"123","card_holder_name":"test","expiry":"11/22"}
    3. Encrypt the above card details using the RSA encryption.
    currency string nullable

    to fetch offer(s) for a specific currency, the currency must be a valid ISO3 code

Responses

When the offers is successfully fetched, the response will be as below


Schema
    net_banking object[]

    The payment_mode passed in request to check the offers

  • Array [
  • additional_charges number

    This is the additional charge that will be charged for this payment mode

    offers object[]

    This field list the offers for the payment_mode

  • Array [
  • id string

    This is the unique offer id provided by Nimbbl, it can be used in subsequent API calls

    name string

    This is the offer name as configured

    display_text string

    This is the offer display text as configured

    logo_url string nullable

    This is the public url from which logo of the offer can be fetched

    coupon_code string nullable

    This is coupon code for the offer

    terms_and_condition string nullable

    This is offer's T&C in markdown format

    start_date date-time

    This is the offer start date in UTC

    end_date date-time

    This is the offer end date in UTC

    type string

    Possible values: [discount, cashback]

    This is offer's type.

    construct string

    Possible values: [fixed_percentage, flat_amount, random]

    This is offer's construct.

    currency string

    This is offer's currency

    discount_amount number

    This is the amount that will be discounted as per the offer that has been configured. Sent in case of type being discount

    cashback_amount number

    This is the amount that will be cashback as per the offer that has been configured. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    pending_validations object nullable

    This provides the fields that will be validated after initiating the payment to ascertain that the offer can be applied or not. This is only relevant for offers on upi and dependent on the conditions configured for the offer.

    collect string[] nullable
    intent string[] nullable
    qr string[] nullable
    order_line_items object[] nullable
  • Array [
  • sku_id string

    This is the unique id of the product stored in your system

    title string

    This is the title of the product that is being sold

    description string

    This is the detailed description of the product being sold

    image_url string

    This is the public URL from which the image of the product can be fetched

    rate number

    This is the pre tax rate of the item, if validations are enabled then the amount must be total_amount ÷ quantity

    quantity int

    This is the quantity that is being purchased

    amount_before_tax string

    This is the rate * quantity i.e. the amount before tax

    tax string

    This is the tax amount on the cart item

    total_amount string

    This is the sum of amount before tax and the tax amount, if validations are enabled then sum of total_amount of all skus must be equal to order's total amount

    serial_numbers string[]

    unique identifiers for individual items, if validations are enabled then the number of provided serial number must be equal to quantity

    offer_discount float nullable

    This is the amount that will be discounted as per the offer that has been configured for that order line item. Sent in case of type being discount

    offer_cashback float nullable

    This is the amount that will be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

  • ]
  • ]
  • name string

    The name of the bank, it can be used in subsequent API calls

    code string

    This is the code for the Net Banking created by Nimbbl, it could be used in subsequent API calls

  • ]
  • wallet object[]

    The payment_mode passed in request to check the offers

  • Array [
  • additional_charges number

    This is the additional charge that will be charged for this payment mode

    offers object[]

    This field list the offers for the payment_mode

  • Array [
  • id string

    This is the unique offer id provided by Nimbbl, it can be used in subsequent API calls

    name string

    This is the offer name as configured

    display_text string

    This is the offer display text as configured

    logo_url string nullable

    This is the public url from which logo of the offer can be fetched

    coupon_code string nullable

    This is coupon code for the offer

    terms_and_condition string nullable

    This is offer's T&C in markdown format

    start_date date-time

    This is the offer start date in UTC

    end_date date-time

    This is the offer end date in UTC

    type string

    Possible values: [discount, cashback]

    This is offer's type.

    construct string

    Possible values: [fixed_percentage, flat_amount, random]

    This is offer's construct.

    currency string

    This is offer's currency

    discount_amount number

    This is the amount that will be discounted as per the offer that has been configured. Sent in case of type being discount

    cashback_amount number

    This is the amount that will be cashback as per the offer that has been configured. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    pending_validations object nullable

    This provides the fields that will be validated after initiating the payment to ascertain that the offer can be applied or not. This is only relevant for offers on upi and dependent on the conditions configured for the offer.

    collect string[] nullable
    intent string[] nullable
    qr string[] nullable
    order_line_items object[] nullable
  • Array [
  • sku_id string

    This is the unique id of the product stored in your system

    title string

    This is the title of the product that is being sold

    description string

    This is the detailed description of the product being sold

    image_url string

    This is the public URL from which the image of the product can be fetched

    rate number

    This is the pre tax rate of the item, if validations are enabled then the amount must be total_amount ÷ quantity

    quantity int

    This is the quantity that is being purchased

    amount_before_tax string

    This is the rate * quantity i.e. the amount before tax

    tax string

    This is the tax amount on the cart item

    total_amount string

    This is the sum of amount before tax and the tax amount, if validations are enabled then sum of total_amount of all skus must be equal to order's total amount

    serial_numbers string[]

    unique identifiers for individual items, if validations are enabled then the number of provided serial number must be equal to quantity

    offer_discount float nullable

    This is the amount that will be discounted as per the offer that has been configured for that order line item. Sent in case of type being discount

    offer_cashback float nullable

    This is the amount that will be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

  • ]
  • ]
  • name string

    The name of the wallet, it can be used in subsequent API calls

    code string

    This is the code for the Wallet app created by Nimbbl, it could be used in subsequent API calls

  • ]
  • pay_later object[]

    The payment_mode passed in request to check the offers

  • Array [
  • additional_charges number

    This is the additional charge that will be charged for this payment mode

    offers object[]

    This field list the offers for the payment_mode

  • Array [
  • id string

    This is the unique offer id provided by Nimbbl, it can be used in subsequent API calls

    name string

    This is the offer name as configured

    display_text string

    This is the offer display text as configured

    logo_url string nullable

    This is the public url from which logo of the offer can be fetched

    coupon_code string nullable

    This is coupon code for the offer

    terms_and_condition string nullable

    This is offer's T&C in markdown format

    start_date date-time

    This is the offer start date in UTC

    end_date date-time

    This is the offer end date in UTC

    type string

    Possible values: [discount, cashback]

    This is offer's type.

    construct string

    Possible values: [fixed_percentage, flat_amount, random]

    This is offer's construct.

    currency string

    This is offer's currency

    discount_amount number

    This is the amount that will be discounted as per the offer that has been configured. Sent in case of type being discount

    cashback_amount number

    This is the amount that will be cashback as per the offer that has been configured. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    pending_validations object nullable

    This provides the fields that will be validated after initiating the payment to ascertain that the offer can be applied or not. This is only relevant for offers on upi and dependent on the conditions configured for the offer.

    collect string[] nullable
    intent string[] nullable
    qr string[] nullable
    order_line_items object[] nullable
  • Array [
  • sku_id string

    This is the unique id of the product stored in your system

    title string

    This is the title of the product that is being sold

    description string

    This is the detailed description of the product being sold

    image_url string

    This is the public URL from which the image of the product can be fetched

    rate number

    This is the pre tax rate of the item, if validations are enabled then the amount must be total_amount ÷ quantity

    quantity int

    This is the quantity that is being purchased

    amount_before_tax string

    This is the rate * quantity i.e. the amount before tax

    tax string

    This is the tax amount on the cart item

    total_amount string

    This is the sum of amount before tax and the tax amount, if validations are enabled then sum of total_amount of all skus must be equal to order's total amount

    serial_numbers string[]

    unique identifiers for individual items, if validations are enabled then the number of provided serial number must be equal to quantity

    offer_discount float nullable

    This is the amount that will be discounted as per the offer that has been configured for that order line item. Sent in case of type being discount

    offer_cashback float nullable

    This is the amount that will be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

  • ]
  • ]
  • name string

    The name of the pay later, it can be used in subsequent API calls

    code string

    This is the code for the Pay Laters created by Nimbbl, it could be used in subsequent API calls

  • ]
  • cards object[]

    The payment_mode passed in request to check the offers

  • Array [
  • offers object[]

    This field list the offers for the Card Based Payment Modes

  • Array [
  • id string

    This is the unique offer id provided by Nimbbl, it can be used in subsequent API calls

    name string

    This is the offer name as configured

    display_text string

    This is the offer display text as configured

    logo_url string nullable

    This is the public url from which logo of the offer can be fetched

    coupon_code string nullable

    This is coupon code for the offer

    terms_and_condition string nullable

    This is offer's T&C in markdown format

    start_date date-time

    This is the offer start date in UTC

    end_date date-time

    This is the offer end date in UTC

    type string

    Possible values: [discount, cashback]

    This is offer's type.

    construct string

    Possible values: [fixed_percentage, flat_amount, random]

    This is offer's construct.

    currency string

    This is offer's currency

    discount_amount number

    This is the amount that will be discounted as per the offer that has been configured. Sent in case of type being discount

    cashback_amount number

    This is the amount that will be cashback as per the offer that has been configured. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    pending_validations object nullable

    This provides the fields that will be validated after initiating the payment to ascertain that the offer can be applied or not. This is only relevant for offers on upi and dependent on the conditions configured for the offer.

    collect string[] nullable
    intent string[] nullable
    qr string[] nullable
    order_line_items object[] nullable
  • Array [
  • sku_id string

    This is the unique id of the product stored in your system

    title string

    This is the title of the product that is being sold

    description string

    This is the detailed description of the product being sold

    image_url string

    This is the public URL from which the image of the product can be fetched

    rate number

    This is the pre tax rate of the item, if validations are enabled then the amount must be total_amount ÷ quantity

    quantity int

    This is the quantity that is being purchased

    amount_before_tax string

    This is the rate * quantity i.e. the amount before tax

    tax string

    This is the tax amount on the cart item

    total_amount string

    This is the sum of amount before tax and the tax amount, if validations are enabled then sum of total_amount of all skus must be equal to order's total amount

    serial_numbers string[]

    unique identifiers for individual items, if validations are enabled then the number of provided serial number must be equal to quantity

    offer_discount float nullable

    This is the amount that will be discounted as per the offer that has been configured for that order line item. Sent in case of type being discount

    offer_cashback float nullable

    This is the amount that will be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

  • ]
  • ]
  • ]
  • upi object[]

    The payment_mode passed in request to check the offers

  • Array [
  • offers object[]

    This field list the offers for the UPI based payment_mode

  • Array [
  • id string

    This is the unique offer id provided by Nimbbl, it can be used in subsequent API calls

    name string

    This is the offer name as configured

    display_text string

    This is the offer display text as configured

    logo_url string nullable

    This is the public url from which logo of the offer can be fetched

    coupon_code string nullable

    This is coupon code for the offer

    terms_and_condition string nullable

    This is offer's T&C in markdown format

    start_date date-time

    This is the offer start date in UTC

    end_date date-time

    This is the offer end date in UTC

    type string

    Possible values: [discount, cashback]

    This is offer's type.

    construct string

    Possible values: [fixed_percentage, flat_amount, random]

    This is offer's construct.

    currency string

    This is offer's currency

    discount_amount number

    This is the amount that will be discounted as per the offer that has been configured. Sent in case of type being discount

    cashback_amount number

    This is the amount that will be cashback as per the offer that has been configured. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured. Sent in case of type being cashback and construct being random

    pending_validations object nullable

    This provides the fields that will be validated after initiating the payment to ascertain that the offer can be applied or not. This is only relevant for offers on upi and dependent on the conditions configured for the offer.

    collect string[] nullable
    intent string[] nullable
    qr string[] nullable
    order_line_items object[] nullable
  • Array [
  • sku_id string

    This is the unique id of the product stored in your system

    title string

    This is the title of the product that is being sold

    description string

    This is the detailed description of the product being sold

    image_url string

    This is the public URL from which the image of the product can be fetched

    rate number

    This is the pre tax rate of the item, if validations are enabled then the amount must be total_amount ÷ quantity

    quantity int

    This is the quantity that is being purchased

    amount_before_tax string

    This is the rate * quantity i.e. the amount before tax

    tax string

    This is the tax amount on the cart item

    total_amount string

    This is the sum of amount before tax and the tax amount, if validations are enabled then sum of total_amount of all skus must be equal to order's total amount

    serial_numbers string[]

    unique identifiers for individual items, if validations are enabled then the number of provided serial number must be equal to quantity

    offer_discount float nullable

    This is the amount that will be discounted as per the offer that has been configured for that order line item. Sent in case of type being discount

    offer_cashback float nullable

    This is the amount that will be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct not being random

    random_cashback_min_amount float nullable

    This is the minimum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

    random_cashback_max_amount float nullable

    This is the maximum amount that can be cashback as per the offer that has been configured for that order line item. Sent in case of type being cashback and construct being random

  • ]
  • ]
  • ]
Loading...