code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PromotionCode.list(limit=3)
  '''Response {
    "object": "list",
    "url": "/v1/promotion_codes",
    "has_more": false,
    "data": [
      {
        "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: List all promotion codesReturns a list of your promotion codes.ParametersExpand all  active optional   code optional   coupon optional   created optional dictionary   customer optional   ending_before optional   limit optional   starting_after optional ReturnsA dictionary with a data property that contains an array of up to limit promotion codes, starting after promotion code starting_after. Each entry in the array is a separate promotion code object. If no more promotion codes are available, the resulting array will be empty. This request should never raise an error