{"openapi":"3.1.0","info":{"title":"MRDC Loyalty API","version":"v1","description":"API de integración de MRDC Loyalty para puntos de venta, ERP y comercio electrónico."},"servers":[{"url":"https://app-prueba.n2.cloud.mrdc.tech"}],"paths":{"/api/v1/cards/{code}/holds":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Hold Create","operationId":"mrdc_v1_hold_create_api_v1_cards__code__holds_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1HoldIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]},"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Holds","operationId":"mrdc_v1_card_holds_api_v1_cards__code__holds_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/holds/{reference}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Hold","operationId":"mrdc_v1_hold_api_v1_holds__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/holds/{reference}/capture":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Hold Capture","operationId":"mrdc_v1_hold_capture_api_v1_holds__reference__capture_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1HoldCaptureIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/holds/{reference}/release":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Hold Release","operationId":"mrdc_v1_hold_release_api_v1_holds__reference__release_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/transactions":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Transactions","operationId":"mrdc_v1_card_transactions_api_v1_cards__code__transactions_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Return movements older than this id (pagination)","title":"Before Id"},"description":"Return movements older than this id (pagination)"},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/capabilities":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Capabilities","operationId":"mrdc_v1_capabilities_api_v1_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/locations":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Locations","operationId":"mrdc_v1_locations_api_v1_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/pass":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Pass","operationId":"mrdc_v1_card_pass_api_v1_cards__code__pass_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/prepaid":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Prepaid","operationId":"mrdc_v1_card_prepaid_api_v1_cards__code__prepaid_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/prepaid/{handle}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Prepaid Item","operationId":"mrdc_v1_card_prepaid_item_api_v1_cards__code__prepaid__handle__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/prepaid/{handle}/charge":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Card Prepaid Charge","operationId":"mrdc_v1_card_prepaid_charge_api_v1_cards__code__prepaid__handle__charge_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftChargeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/prepaid/{handle}/refund":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Card Prepaid Refund","operationId":"mrdc_v1_card_prepaid_refund_api_v1_cards__code__prepaid__handle__refund_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftRefundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/prepaid/{handle}/holds":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Card Prepaid Hold","operationId":"mrdc_v1_card_prepaid_hold_api_v1_cards__code__prepaid__handle__holds_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1HoldIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/{code}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard","operationId":"mrdc_v1_giftcard_api_v1_gift_cards__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/{code}/charge":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard Charge","operationId":"mrdc_v1_giftcard_charge_api_v1_gift_cards__code__charge_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftChargeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/{code}/refund":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard Refund","operationId":"mrdc_v1_giftcard_refund_api_v1_gift_cards__code__refund_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftRefundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/orders":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard Order","operationId":"mrdc_v1_giftcard_order_api_v1_gift_cards_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftOrderIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/orders/{reference}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard Order Get","operationId":"mrdc_v1_giftcard_order_get_api_v1_gift_cards_orders__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/orders/{reference}/activate":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard Order Activate","operationId":"mrdc_v1_giftcard_order_activate_api_v1_gift_cards_orders__reference__activate_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards/orders/{reference}/void":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Giftcard Order Void","operationId":"mrdc_v1_giftcard_order_void_api_v1_gift_cards_orders__reference__void_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1GiftVoidIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/coupons":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Coupons","operationId":"mrdc_v1_card_coupons_api_v1_cards__code__coupons_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]},"post":{"tags":["API v1"],"summary":"Mrdc V1 Coupon Issue","operationId":"mrdc_v1_coupon_issue_api_v1_cards__code__coupons_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1CouponIssueIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/coupons/{handle}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card Coupon","operationId":"mrdc_v1_card_coupon_api_v1_cards__code__coupons__handle__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"amount","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"Cart total in currency units, to preview the discount","title":"Amount"},"description":"Cart total in currency units, to preview the discount"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/coupons/{handle}/redeem":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Card Coupon Redeem","operationId":"mrdc_v1_card_coupon_redeem_api_v1_cards__code__coupons__handle__redeem_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1CardCouponRedeemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/coupons/{handle}/restore":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Card Coupon Restore","operationId":"mrdc_v1_card_coupon_restore_api_v1_cards__code__coupons__handle__restore_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1CardCouponRestoreIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/offers":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Offers","operationId":"mrdc_v1_offers_api_v1_offers_get","parameters":[{"name":"card","in":"query","required":false,"schema":{"type":"string","maxLength":32,"description":"Card code; with it, members-only offers are returned in full","default":"","title":"Card"},"description":"Card code; with it, members-only offers are returned in full"},{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":"","title":"Program"},"description":"Program id or slug; defaults to the API key's program or the merchant's main program"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/link/challenges":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Link Challenge","operationId":"mrdc_v1_link_challenge_api_v1_link_challenges_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1LinkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/link/challenges/{challenge_id}/verify":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Link Verify","operationId":"mrdc_v1_link_verify_api_v1_link_challenges__challenge_id__verify_post","parameters":[{"name":"challenge_id","in":"path","required":true,"schema":{"type":"string","title":"Challenge Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1LinkVerifyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/programs":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Programs","operationId":"mrdc_v1_programs_api_v1_programs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/program":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Program","operationId":"mrdc_v1_program_api_v1_program_get","parameters":[{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":"","title":"Program"},"description":"Program id or slug; defaults to the API key's program or the merchant's main program"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Search","operationId":"mrdc_v1_search_api_v1_cards_get","parameters":[{"name":"phone","in":"query","required":false,"schema":{"type":"string","default":"","title":"Phone"}},{"name":"email","in":"query","required":false,"schema":{"type":"string","default":"","title":"Email"}},{"name":"external_ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"External Ref"}},{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":"","title":"Program"},"description":"Program id or slug; defaults to the API key's program or the merchant's main program"},{"name":"all_programs","in":"query","required":false,"schema":{"type":"boolean","description":"Return the customer's active cards in every active program of the merchant, even when the API key is bound to one program; the API key's (or requested) program is listed first","default":false,"title":"All Programs"},"description":"Return the customer's active cards in every active program of the merchant, even when the API key is bound to one program; the API key's (or requested) program is listed first"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Card","operationId":"mrdc_v1_card_api_v1_cards__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/customers":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Enroll","operationId":"mrdc_v1_enroll_api_v1_customers_post","parameters":[{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":"","title":"Program"},"description":"Program id or slug; defaults to the API key's program or the merchant's main program"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1CustomerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]},"get":{"tags":["API v1"],"summary":"Mrdc V1 Customers","operationId":"mrdc_v1_customers_api_v1_customers_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Only cards with an id greater than this one","default":0,"title":"Since"},"description":"Only cards with an id greater than this one"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Only cards of this program (id or slug)","default":"","title":"Program"},"description":"Only cards of this program (id or slug)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/customers/bulk":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Bulk","operationId":"mrdc_v1_bulk_api_v1_customers_bulk_post","parameters":[{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":"","title":"Program"},"description":"Program id or slug; defaults to the API key's program or the merchant's main program"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1BulkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/quote":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Quote","operationId":"mrdc_v1_quote_api_v1_cards__code__quote_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1QuoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/earn":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Earn","operationId":"mrdc_v1_earn_api_v1_cards__code__earn_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1EarnIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/redeem":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Redeem","operationId":"mrdc_v1_redeem_api_v1_cards__code__redeem_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1RedeemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/quote":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Quote Anonymous","operationId":"mrdc_v1_quote_anonymous_api_v1_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1AnonymousQuoteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/transactions/{reference}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Transaction","operationId":"mrdc_v1_transaction_api_v1_transactions__reference__get","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/transactions/{reference}/reverse":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Reverse","operationId":"mrdc_v1_reverse_api_v1_transactions__reference__reverse_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1ReverseIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/rewards":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Rewards","operationId":"mrdc_v1_rewards_api_v1_rewards_get","parameters":[{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":"","title":"Program"},"description":"Program id or slug; defaults to the API key's program or the merchant's main program"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/vouchers/{code}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Voucher","operationId":"mrdc_v1_voucher_api_v1_vouchers__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/vouchers/{code}/use":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Voucher Use","operationId":"mrdc_v1_voucher_use_api_v1_vouchers__code__use_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1VoucherUseIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/pack/sell":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Pack Sell","operationId":"mrdc_v1_pack_sell_api_v1_cards__code__pack_sell_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1PackSellIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/pack/use":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Pack Use","operationId":"mrdc_v1_pack_use_api_v1_cards__code__pack_use_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1PackUseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/gift-cards":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Gift Card","operationId":"mrdc_v1_gift_card_api_v1_gift_cards_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftCardIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/cards/{code}/gift/load":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Gift Load","operationId":"mrdc_v1_gift_load_api_v1_cards__code__gift_load_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcV1GiftLoadIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/coupons":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Coupons","operationId":"mrdc_v1_coupons_api_v1_coupons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/coupons/{code}":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Coupon","operationId":"mrdc_v1_coupon_api_v1_coupons__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"amount","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"Cart total in currency units; when sent, the response adds discount_type, machine_applicable and discount_cents","title":"Amount"},"description":"Cart total in currency units; when sent, the response adds discount_type, machine_applicable and discount_cents"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/coupons/{code}/redeem":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Coupon Redeem","operationId":"mrdc_v1_coupon_redeem_api_v1_coupons__code__redeem_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1CouponRedeemIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/coupons/{code}/restore":{"post":{"tags":["API v1"],"summary":"Mrdc V1 Coupon Restore","operationId":"mrdc_v1_coupon_restore_api_v1_coupons__code__restore_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1CouponRestoreIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/hooks":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Hooks","operationId":"mrdc_v1_hooks_api_v1_hooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"mrdcApiKey":[]}]},"post":{"tags":["API v1"],"summary":"Mrdc V1 Subscribe","operationId":"mrdc_v1_subscribe_api_v1_hooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MrdcHookIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/hooks/{hook_id}":{"delete":{"tags":["API v1"],"summary":"Mrdc V1 Unsubscribe","operationId":"mrdc_v1_unsubscribe_api_v1_hooks__hook_id__delete","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"integer","title":"Hook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/events":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Events","operationId":"mrdc_v1_events_api_v1_events_get","parameters":[{"name":"event","in":"query","required":false,"schema":{"type":"string","maxLength":48,"description":"Only this event name","default":"","title":"Event"},"description":"Only this event name"},{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Only events with an id greater than this one","default":0,"title":"Since"},"description":"Only events with an id greater than this one"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}},"/api/v1/transactions":{"get":{"tags":["API v1"],"summary":"Mrdc V1 Transactions","operationId":"mrdc_v1_transactions_api_v1_transactions_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Only movements with an id greater than this one","default":0,"title":"Since"},"description":"Only movements with an id greater than this one"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","pattern":"^(|earn|redeem|adjust|reverse|expire)$","default":"","title":"Kind"}},{"name":"program","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Only movements of this program (id or slug)","default":"","title":"Program"},"description":"Only movements of this program (id or slug)"},{"name":"reference_prefix","in":"query","required":false,"schema":{"type":"string","maxLength":120,"description":"Only movements whose reference starts with this text (at least 3 characters), for example the order number","default":"","title":"Reference Prefix"},"description":"Only movements whose reference starts with this text (at least 3 characters), for example the order number"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"mrdcApiKey":[]}]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MrdcHookIn":{"properties":{"target_url":{"type":"string","maxLength":500,"pattern":"^https://[^\\s]+$","title":"Target Url","description":"HTTPS URL that receives the events"},"event":{"type":"string","maxLength":48,"title":"Event","description":"Event name, or * for every event"},"description":{"type":"string","maxLength":120,"title":"Description","default":""}},"type":"object","required":["target_url","event"],"title":"MrdcHookIn"},"MrdcV1AnonymousQuoteIn":{"properties":{"amount":{"type":"number","minimum":0.0,"title":"Amount","description":"Order total after rewards and coupons, in currency units; gift card payments do not reduce it","default":0},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"program":{"type":"string","maxLength":64,"title":"Program","description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":""}},"type":"object","title":"MrdcV1AnonymousQuoteIn"},"MrdcV1BulkCustomerIn":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name","default":""},"first_name":{"type":"string","maxLength":80,"title":"First Name","default":""},"last_name":{"type":"string","maxLength":80,"title":"Last Name","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"email":{"type":"string","maxLength":160,"title":"Email","default":""},"birthday":{"type":"string","maxLength":10,"title":"Birthday","default":""},"extra":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":20,"title":"Extra"},"external_ref":{"type":"string","maxLength":120,"title":"External Ref","default":""},"initial_balance":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Initial Balance","description":"Stamps, points or credit (currency units) according to the program; only applied to new customers"}},"type":"object","title":"MrdcV1BulkCustomerIn"},"MrdcV1BulkIn":{"properties":{"customers":{"items":{"$ref":"#/components/schemas/MrdcV1BulkCustomerIn"},"type":"array","maxItems":500,"minItems":1,"title":"Customers"},"on_duplicate":{"type":"string","pattern":"^(skip|fill)$","title":"On Duplicate","description":"skip: leave existing customers untouched; fill: complete only their empty fields","default":"skip"},"enforce_required":{"type":"boolean","title":"Enforce Required","description":"Apply the merchant's required enrollment fields","default":false},"send_welcome":{"type":"boolean","title":"Send Welcome","description":"Queue the welcome email with the card link for new customers with email, and the WhatsApp card message when the merchant enabled it and the customer opted in","default":false},"program":{"type":"string","maxLength":64,"title":"Program","description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":""}},"type":"object","required":["customers"],"title":"MrdcV1BulkIn"},"MrdcV1CardCouponRedeemIn":{"properties":{"reference":{"type":"string","maxLength":120,"minLength":1,"title":"Reference","description":"Idempotency reference, usually the order number"},"amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Amount","description":"Cart total in currency units; the discount never exceeds it"},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["reference"],"title":"MrdcV1CardCouponRedeemIn"},"MrdcV1CardCouponRestoreIn":{"properties":{"reference":{"type":"string","maxLength":120,"minLength":1,"title":"Reference","description":"The reference used when it was redeemed"}},"type":"object","required":["reference"],"title":"MrdcV1CardCouponRestoreIn"},"MrdcV1ConsentIn":{"properties":{"terms_accepted":{"type":"boolean","title":"Terms Accepted","description":"The customer accepted the program terms in your checkout or form"},"terms_version":{"type":"string","maxLength":64,"title":"Terms Version","description":"Version or date of the text the customer accepted","default":""},"text":{"type":"string","maxLength":500,"title":"Text","description":"The consent sentence shown to the customer","default":""},"email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email","description":"true/false records an explicit opt-in/opt-out for email messages; omit to leave it unchanged"},"whatsapp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Whatsapp","description":"true/false records an explicit opt-in/opt-out for WhatsApp messages; omit to leave it unchanged"},"source":{"type":"string","maxLength":24,"title":"Source","description":"Where the consent was collected, for example checkout","default":"api"},"accepted_at":{"type":"string","maxLength":40,"title":"Accepted At","description":"ISO date and time when the customer accepted","default":""},"ip":{"type":"string","maxLength":64,"title":"Ip","default":""}},"type":"object","required":["terms_accepted"],"title":"MrdcV1ConsentIn"},"MrdcV1CouponIssueIn":{"properties":{"coupon":{"type":"string","maxLength":64,"title":"Coupon","description":"Coupon id or slug"}},"type":"object","required":["coupon"],"title":"MrdcV1CouponIssueIn"},"MrdcV1CouponRedeemIn":{"properties":{"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference","description":"Idempotency key, for example the invoice number"},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id","description":"Branch where the coupon was used"},"amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Amount","description":"Cart total in currency units; when sent, the response adds discount_cents capped to it"}},"type":"object","title":"MrdcV1CouponRedeemIn"},"MrdcV1CouponRestoreIn":{"properties":{"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference","description":"When sent, it must be the reference used to redeem the coupon"}},"type":"object","title":"MrdcV1CouponRestoreIn"},"MrdcV1CustomerIn":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name","default":""},"first_name":{"type":"string","maxLength":80,"title":"First Name","default":""},"last_name":{"type":"string","maxLength":80,"title":"Last Name","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"email":{"type":"string","maxLength":160,"title":"Email","default":""},"birthday":{"type":"string","maxLength":10,"title":"Birthday","default":""},"extra":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":20,"title":"Extra"},"external_ref":{"type":"string","maxLength":120,"title":"External Ref","default":""},"enforce_required":{"type":"boolean","title":"Enforce Required","description":"Apply the merchant's required enrollment fields","default":false},"program":{"type":"string","maxLength":64,"title":"Program","description":"Program id or slug; defaults to the API key's program or the merchant's main program","default":""},"source":{"type":"string","maxLength":64,"title":"Source","description":"Code of a registration source created in Programa y premios → Fuentes y QR; unknown or inactive codes are ignored","default":""},"consent":{"anyOf":[{"$ref":"#/components/schemas/MrdcV1ConsentIn"},{"type":"null"}],"description":"Record the customer's acceptance of terms and channel consent collected by your system"}},"type":"object","title":"MrdcV1CustomerIn"},"MrdcV1EarnIn":{"properties":{"amount":{"type":"number","minimum":0.0,"title":"Amount","description":"Purchase total in currency units","default":0},"stamps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Stamps"},"points":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Points"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id","description":"Branch where the purchase happened; needed for double-reward schedules limited to some branches"}},"type":"object","title":"MrdcV1EarnIn"},"MrdcV1GiftCardIn":{"properties":{"program":{"type":"string","maxLength":64,"title":"Program","description":"Gift card program id or slug; defaults to the API key's program","default":""},"amount":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Amount","description":"Balance loaded on the gift card, in currency units"},"price":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Price","description":"Amount charged to the buyer; defaults to the amount"},"recipient_name":{"type":"string","maxLength":120,"title":"Recipient Name","default":""},"recipient_phone":{"type":"string","maxLength":40,"title":"Recipient Phone","default":""},"recipient_email":{"type":"string","maxLength":160,"title":"Recipient Email","default":""},"buyer_name":{"type":"string","maxLength":120,"title":"Buyer Name","default":""},"buyer_phone":{"type":"string","maxLength":40,"title":"Buyer Phone","default":""},"buyer_email":{"type":"string","maxLength":160,"title":"Buyer Email","default":""},"message":{"type":"string","maxLength":255,"title":"Message","default":""},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["amount"],"title":"MrdcV1GiftCardIn"},"MrdcV1GiftChargeIn":{"properties":{"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount","description":"Amount to charge, in currency units"},"reference":{"type":"string","maxLength":120,"minLength":1,"title":"Reference","description":"Idempotency reference, for example <order>:gift:<code>"},"allow_partial":{"type":"boolean","title":"Allow Partial","description":"Charge whatever is available when the balance is lower than the amount","default":false},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["amount","reference"],"title":"MrdcV1GiftChargeIn"},"MrdcV1GiftLoadIn":{"properties":{"amount":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Amount","description":"Balance to add, in currency units"},"price":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Price","description":"Amount charged; defaults to the amount"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["amount"],"title":"MrdcV1GiftLoadIn"},"MrdcV1GiftOrderIn":{"properties":{"reference":{"type":"string","maxLength":120,"minLength":1,"title":"Reference","description":"Unique reference of the order line; repeating it returns the same gift card"},"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount","description":"Value loaded on the gift card, in currency units"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price","description":"What the buyer paid, when different from the value"},"program":{"type":"string","maxLength":64,"title":"Program","description":"Gift card program id or slug; required when the merchant has more than one","default":""},"activate":{"type":"boolean","title":"Activate","description":"false creates the order as pending (nothing is issued or delivered) until it is activated","default":true},"recipient_name":{"type":"string","maxLength":120,"title":"Recipient Name","default":""},"recipient_email":{"type":"string","maxLength":160,"title":"Recipient Email","default":""},"recipient_phone":{"type":"string","maxLength":40,"title":"Recipient Phone","default":""},"buyer_name":{"type":"string","maxLength":120,"title":"Buyer Name","default":""},"buyer_email":{"type":"string","maxLength":160,"title":"Buyer Email","default":""},"buyer_phone":{"type":"string","maxLength":40,"title":"Buyer Phone","default":""},"message":{"type":"string","maxLength":255,"title":"Message","default":""},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["reference","amount"],"title":"MrdcV1GiftOrderIn"},"MrdcV1GiftRefundIn":{"properties":{"charge_reference":{"type":"string","maxLength":120,"minLength":1,"title":"Charge Reference","description":"Reference of the charge being refunded"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount","description":"Partial refund; omit to refund everything left of that charge"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference","description":"Idempotency reference for this refund"},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"note":{"type":"string","maxLength":255,"title":"Note","default":""}},"type":"object","required":["charge_reference"],"title":"MrdcV1GiftRefundIn"},"MrdcV1GiftVoidIn":{"properties":{"refund_remaining":{"type":"boolean","title":"Refund Remaining","description":"When the gift card was partly used, void only what is left and report it as refundable","default":false}},"type":"object","title":"MrdcV1GiftVoidIn"},"MrdcV1HoldCaptureIn":{"properties":{"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference","description":"Reference for the resulting movement; default hold:<hold reference>"},"credit":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Credit","description":"Capture less credit than was held; the rest is released"},"note":{"type":"string","maxLength":255,"title":"Note","default":""}},"type":"object","title":"MrdcV1HoldCaptureIn"},"MrdcV1HoldIn":{"properties":{"reward_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reward Id"},"credit":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Credit","description":"Credit to reserve, in currency units (credit and gift card programs)"},"reference":{"type":"string","maxLength":120,"minLength":1,"title":"Reference","description":"Unique reference of the cart or order; repeating it returns the same hold"},"minutes":{"anyOf":[{"type":"integer","maximum":10080.0,"minimum":1.0},{"type":"null"}],"title":"Minutes","description":"Lifetime of the hold; default 30, maximum 10080 (7 days)"},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["reference"],"title":"MrdcV1HoldIn"},"MrdcV1LinkIn":{"properties":{"card_code":{"type":"string","maxLength":32,"title":"Card Code","default":""},"email":{"type":"string","maxLength":160,"title":"Email","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"program":{"type":"string","maxLength":64,"title":"Program","default":""},"channel":{"type":"string","pattern":"^email$","title":"Channel","default":"email"}},"type":"object","title":"MrdcV1LinkIn"},"MrdcV1LinkVerifyIn":{"properties":{"code":{"type":"string","maxLength":12,"minLength":4,"title":"Code"}},"type":"object","required":["code"],"title":"MrdcV1LinkVerifyIn"},"MrdcV1PackSellIn":{"properties":{"packs":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Packs","description":"Number of packs sold; each one adds the program's pack size","default":1},"uses":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Uses","description":"Exact uses to add instead of packs × pack size"},"price":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Price","description":"Amount charged in currency units; defaults to the program's pack price"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","title":"MrdcV1PackSellIn"},"MrdcV1PackUseIn":{"properties":{"uses":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Uses","description":"Uses to consume from the pack","default":1},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"}},"type":"object","title":"MrdcV1PackUseIn"},"MrdcV1QuoteIn":{"properties":{"amount":{"type":"number","minimum":0.0,"title":"Amount","default":0},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"detail":{"type":"boolean","title":"Detail","description":"Add a numeric explanation of the result: base rule, schedule and tier bonuses, and the next reward","default":false}},"type":"object","title":"MrdcV1QuoteIn"},"MrdcV1RedeemIn":{"properties":{"reward_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reward Id"},"credit":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Credit"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"note":{"type":"string","maxLength":255,"title":"Note","default":""},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","default":"api"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id","description":"Branch where the reward or credit was used"}},"type":"object","title":"MrdcV1RedeemIn"},"MrdcV1ReverseIn":{"properties":{"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount","description":"Partial refund amount; omit to reverse everything left"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference","description":"Idempotency key for this reversal"},"source":{"type":"string","pattern":"^[a-z_]{2,16}$","title":"Source","description":"Source label recorded on the reversal, for example odoo_pos or woocommerce","default":"api"},"note":{"type":"string","maxLength":255,"title":"Note","default":""}},"type":"object","title":"MrdcV1ReverseIn"},"MrdcV1VoucherUseIn":{"properties":{"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"}},"type":"object","title":"MrdcV1VoucherUseIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"mrdcApiKey":{"type":"http","scheme":"bearer","description":"API key del comercio (mrdc_lk_… en producción, mrdc_test_… en el entorno de pruebas)"}}}}