code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PromotionCode.retrieve(
    "promo_1HMxuf2eZvKYlo2CmGXSyhRx",
  )
  '''Response {
    "id": "promo_1HMxuf2eZvKYlo2CmGXSyhRx",
    "object": "promotion_code",
    "active": true,
    "code": "TS0EQJHH",
    "coupon": {
      "id": "123",
      "object": "coupon",
      "amount_off": null,
      "created": 1507799684,
      "currency": null,
      "duration": "repeating",
      "duration_in_months": 3,
      "livemode": false,
      "max_redemptions": 14,
      "metadata": {
        "teste": "test"
      },
      "name": null,
      "percent_off": 34.0,
      "redeem_by": null,
      "times_redeemed": 0,
      "valid": true
    },
    "created": 1599060617,
    "customer": null,
    "expires_at": null,
    "livemode": false,
    "max_redemptions": null,
    "metadata": {
      "order_id": "1"
    },
    "restrictions": {
      "first_time_transaction": false,
      "minimum_amount": null,
      "minimum_amount_currency": null
    },
    "times_redeemed": 0
  }'''
nl: Retrieve a promotion codeRetrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use list with the desired code.ParametersNo parameters.ReturnsReturns a promotion code if a valid promotion code ID was provided. Raises an error otherwise