getTokenInfo
description: given the checkout token, returns the order information
Parameter | Type | Description | Required |
---|---|---|---|
api_token | string | API Token | YES |
checkout_token | string | Checkout Token that was returned when using getCoupon | YES |
1 2 3 4 5 |
require "codeBookie.php"; $codeBookie = new CodeBookie(); $checkoutToken = "TEST_TOKEN"; $result = $codeBookie->getTokenInfo($checkoutToken); |
Output:
Variable | Type | Description |
---|---|---|
status | string | OK or Error |
message | string | Error message |
coupon_code | string | Coupon Code associated with checkout token |
product_code | string | Product Code that was sent |
original_price | decimal | original price of item that was received |
discounted_price | decimal | discounted price of the item |
discount_amount | decimal | amount discounted |
order_completed | string | YES or NO if the order was completed |