type: object required: - code properties: code: type: string description: A unique code that will be used to redeem the Discount usage_limit: type: number description: Maximum number of times the discount code can be used default: 1 metadata: type: object description: An optional set of key-value pairs to hold additional information. externalDocs: description: Learn about the metadata attribute, and how to delete and update it. url: >- https://docs.medusajs.com/development/entities/overview#metadata-attribute