Request Context
The request context enables you to provide PromoBadger with contextual information about the requst being made (e.g. currency code, channel ID etc.).
The Context object
Attributes
- Name
bigcommerce
- Type
- Object
- Description
More Details: BigCommerceContext
The Context Object
{
"bigcommerce": {
...
}
}
The BigCommerce Context object
Attributes
- Name
channel
- Type
- Integer
- Description
The BigCommerce storefront channel ID.
- Name
currency
- Type
- String
- Description
The current BigCommerce currency code (GBP, USD, AUD etc.)
The BigCommerce Context Object
{
"context": {
"bigcommerce": {
"channel": 123456,
"currency": "GBP"
}
}
}