### Request Header Example (Plain Text) Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started Example of the required Authorization header for the Get e-Vouchers By Merchants ID service. The token should be replaced with your actual Bearer token. ```plaintext "Authorization" => "Bearer TOKEN" ``` -------------------------------- ### API Response Example (JSON) Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started This is an example of a successful JSON response when fetching data from the API. It includes status information and a list of categories, each with an Arabic and English name and an ID. ```json { "status_code": 200, "status": true, "categories": [ { "id": 1, "name_ar": "منصات ألعاب", "name_en": "Games Cards" }, { "id": 3, "name_ar": "بطاقات تسوق", "name_en": "Shop Cards" }, { "id": 4, "name_ar": "متاجر رقمية", "name_en": "App Stores" }, { "id": 5, "name_ar": "الإتصال والبيانات", "name_en": "Recharge Cards" }, { "id": 10, "name_ar": "خدمات وإشتراكات", "name_en": "Services" }, { "id": 18, "name_ar": "مطاعم", "name_en": "Restaurants" } ] } ``` -------------------------------- ### Get Balance Request (Plain Text) Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis This example shows the required header parameters for the Get Balance service. It mandates an 'Authorization' header with a Bearer token and specifies 'Accept' as 'application/json'. No request body is accepted by this service. ```plaintext "Authorization" => "Bearer TOKEN" "Accept" => "application/json" ``` -------------------------------- ### Get Categories List Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started Fetches all supported categories from the catalog. Requires an 'Authorization' header with a Bearer token and 'Content-Type: application/json'. ```bash curl --location 'https://daleelapi.com/api/marketplace/v1/get/categories-list' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' ``` -------------------------------- ### Make Purchase Request Body Example Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/get-all-purchase This example demonstrates the structure of the request body for the Make Purchase service, including item ID, quantity, and reference. The marketplace_customer_id is optional. ```text item_id : The id of the item qty : The quantity number want to purchase reference : Unique Code assigned by the client system marketplace_customer_id: The Id of client customer system ``` -------------------------------- ### GET /api/marketplace/v1/get/balance Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started Retrieves the current account balance for the authenticated merchant. ```APIDOC ## GET /api/marketplace/v1/get/balance ### Description Retrieves the current balance associated with the authenticated merchant account. ### Method GET ### Endpoint https://daleelapi.com/api/marketplace/v1/get/balance ### Parameters #### Query Parameters - None ### Request Example ``` curl --location 'https://daleelapi.com/api/marketplace/v1/get/balance' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` ### Response #### Success Response (200) - **status_code** (integer) - The HTTP status code. - **status** (boolean) - Indicates if the request was successful. - **balance** (integer) - The current account balance. #### Response Example { "status_code": 200, "status": true, "balance": 50000000000 } ``` -------------------------------- ### GET /products Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/status-codes Retrieves a list of available products in the marketplace, including store details, pricing, and redemption instructions. ```APIDOC ## GET /products ### Description Fetches a list of digital products available on the DaleelStore marketplace. Each item includes localized names, pricing, VAT information, and instructions for redemption. ### Method GET ### Endpoint /products ### Parameters None ### Request Example GET /products ### Response #### Success Response (200) - **status_code** (integer) - HTTP status code - **status** (boolean) - Request success status - **items** (array) - List of product objects #### Response Example { "status_code": 200, "status": true, "items": [ { "id": 1125, "name_en": "iTunes", "name_ar": "آيتونز", "category_name_en": "App Stores", "price": 103.25, "currency": "SAR", "image": "https://s101.daleelstore.com/public/products/p_f_3_1699718341.png", "store": { "id": 24, "name_en": "Italy Store" } } ] } ``` -------------------------------- ### GET /api/marketplace/v1/purchases Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started Retrieves a list of all purchases that have been completed for the authenticated account. ```APIDOC ## GET /api/marketplace/v1/purchases ### Description This service allows you to get a list of all purchases that have been completed for an account. ### Method GET ### Endpoint /api/marketplace/v1/purchases ### Parameters None ### Response #### Success Response (200) - **data** (array) - List of purchase objects ``` -------------------------------- ### Make Purchase Request using cURL Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/welcome This cURL command demonstrates how to make a POST request to the `/api/marketplace/v1/purchase/make` endpoint to initiate a purchase. It includes necessary headers like `Accept` and `Authorization`, and form data for `item_id`, `qty`, `reference`, and `marketplace_customer_id`. Ensure you replace the placeholder token with your actual Bearer token. ```bash curl --location 'https://daleelapi.com/api/marketplace/v1/purchase/make' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjU1MmIyNjY4ODZiZWUyODElM0NlM0NlMTAzZTg0OWM5N2IxNTViYTE1ZmIxYzg5OGYwMTFjNDAxOGY0Y2NkZTkxZDg0OGU0NTAxZDRjYzc2YWI0In0.eyJhdWQiOiIyIiwianRpIjoiNTUyYjI2Njg4NmJlZTI4MWUzM2UxMDNlODQ5Yzk3YjE1NWJhMTVmYjFjODk4ZjAxMWM0MDE4ZjRjY2RlOTFkODQ4ZTQ1MDFkNGNjNzZhYjQiLCJpYXQiOjE1ODA0NzY1MzAsIm5iZiI6MTU4MDQ3NjUzMCwiZXhwIjoxNjEyMDk4OTMwLCJzdWIiOiI0MDQxNSIsInNjb3BlcyI6WyIqIl19.rYIe_fF0-YQJw8FXKbuy5SAeM71UWR6OMptrJjA8Y6SCx-3e0JwZkjeErTsonlE7wzRSB9ueHJMAwUceI0w_z5_LMt6rdiCxaTq0bMfmk5Be-6e9u53SUKngqYz7Uz-ucDYfmq9xbvkqB3uAzQ2TsizRLNIhf7WrlQCbW8knUNMiIStH_BRRuuZ3jgPM95_NftHI7zHtkN0XxbO_UW9JGx6HsMuXLkTtwLLflpM1o7qNwIiwXK-Mllrt_2792s5fksYJ4kb1d298KtlmsOwf5I3s-FadPygqSz02Xs6bOHeeEOb0p01wJxsQanoM2GRlwuwW47Tmrw3pqkdMwRwE6xNBmmDmbsnPbe6EopINQFOwBpmRfNE1W_GH7Ybr68e4BHRjJOYrqrIGbrENn822HFR1OjulBpMTgFnXXRVbQRdTAdnEqMeUzlTouoNPbzTZbUNFr030X0x6265xaleQ4BD1A3cFNZMwiDGwM305M645jCTVpBf7VQVMo5Ntr-Bk-rmCWOd1IzZid4uL3rRYfBgPLNcFNMQwAmJMZiFkO1rCA1kcCj1qjVD983zj_9XVyns4StDzhnVyEyoUIhs7HhTO67jyK34KthONusiFTE-_S-YxfIet-XD35xJvh-MDgIHKT2jl_wcICd29kGER_Jz-anOKsNdtGXbUpF6x3sk' \ --form 'item_id="31"' \ --form 'qty="1"' \ --form 'reference="DS2023112"' \ --form 'marketplace_customer_id="1"' ``` -------------------------------- ### Make Purchase API Request using cURL Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started This cURL command demonstrates how to make a POST request to the `/api/marketplace/v1/purchase/make` endpoint. It includes necessary headers such as `Accept` and `Authorization`, and form data for `item_id`, `qty`, `reference`, and `marketplace_customer_id`. This is used to initiate a purchase on the Daleelstore marketplace. ```bash curl --location 'https://daleelapi.com/api/marketplace/v1/purchase/make' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjU1MmIyNjY4ODZiZWUyODFlMzNlMTAzZTg0OWM5N2IxNTViYTE1ZmIxYzg5OGYwMTFjNDAxOGY0Y2NkZTkxZDg0OGU0NTAxZDRjYzc2YWI0In0.eyJhdWQiOiIyIiwianRpIjoiNTUyYjI2Njg4NmJlZTI4MWUzM2UxMDNlODQ5Yzk3YjE1NWJhMTVmYjFjODk4ZjAxMWM0MDE4ZjRjY2RlOTFkODQ4ZTQ1MDFkNGNjNzZhYjQiLCJpYXQiOjE1ODA0NzY1MzAsIm5iZiI6MTU4MDQ3NjUzMCwiZXhwIjoxNjEyMDk4OTMwLCJzdWIiOiI0MDQxNSIsInNjb3BlcyI6WyIqIl19.rYIe_fF0-YQJw8FXKbuy5SAeM71UWR6OMptrJjA8Y6SCx-3e0JwZkjeErTsonlE7wzRSB9ueHJMAwUceI0w_z5_LMt6rdiCxaTq0bMfmk5Be-6e9u53SUKngqYz7Uz-ucDYfmq9xbvkqB3uAzQ2TsizRLNIhf7WrlQCbW8knUNMiIStH_BRRuuZ3jgPM95_NftHI7zHtkN0XxbO_UW9JGx6HsMuXLkTtwLLflpM1o7qNwIiwXK-Mllrt_2792s5fksYJ4kb1d298KtlmsOwf5I3s-FadPygqSz02Xs6bOHeeEOb0p01wJxsQanoM2GRlwuwW47Tmrw3pqkdMwRwE6xNBmmDmbsnPbe6EopINQFOwBpmRfNE1W_GH7Ybr68e4BHRjJOYrqrIGbrENn822HFR1OjulBpMTgFnXXRVbQRdTAdnEqMeUzlTouoNPbzTZbUNFr030X0x6265xaleQ4BD1A3cFNZMwiDGwM305M645jCTVpBf7VQVMo5Ntr-Bk-rmCWOd1IzZid4uL3rRYfBgPLNcFNMQwAmJMZiFkO1rCA1kcCj1qjVD983zj_9XVyns4StDzhnVyEyoUIhs7HhTO67jyK34KthONusiFTE-_S-YxfIet-XD35xJvh-MDgIHKT2jl_wcICd29kGER_Jz-anOKsNdtGXbUpF6x3sk' \ --form 'item_id="31"' \ --form 'qty="1"' \ --form 'reference="DS2023112"' \ --form 'marketplace_customer_id="1"' ``` -------------------------------- ### Example JSON Response for Purchase Details Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/welcome This is an example of the JSON response received when successfully retrieving purchase details. It outlines the structure and data types of various purchase attributes, including status, item information, quantities, pricing, and card details. ```json { "status_code": 200, "status": true, "purchase_id": 21304401, "purchase_status": "complete", "reference": "", "marketplace_customer_id": null, "item_id": 30, "item_info": { "id": 30, "name_en": "iTunes", "name_ar": "آيتونز", "category_name_en": "App Stores", "category_name_ar": "متاجر رقمية", "amount_en": "$10", "amount_ar": "10 دولار", "vat_type": "voucher", "vat_percentage": 15, "price": 37.5, "currency": "SAR", "cost_price_before_vat": 35.63, "cost_price_vat_amt": 0, "cost_price_after_vat": 35.63, "is_active": 1, "image": "https://s101.daleelstore.com/public/products/p_f_3_1699718341.png", "store": { "id": 1, "name_ar": "المتجر الأمريكي", "name_en": "US Store", "icon": "https://s101.daleelstore.com/public/countries/1_1628407245.png" }, "how_to_use_ar": "طريقة الشحن بإستخدام الآيفون، الآيباد أو الآيبود :\r\n1) قم بتسجيل الدخول إلى حسابك في الـ App Store.\r\n2) قم بالنزول إلى آخر الصفحة، ثم قم بإختيار أيقونة Redeem.\r\n3) اختر الخيار الثاني You can also enter your code manually، و من ثم قم بنسخ الرمز المُرسل إليك و لصقه في الخانة المطلوبة.\r\n4) من أعلى الصفحة أختر كلمة Redeem ليتم إستبدال رمز.\r\n5) مبروك! يمكنك الآن التمتع بشراء المحتوى المدفوع بعد أن أصبح حسابك مشحون.\r\n\r\nطريقة الشحن بإستخدام الحاسوب :\r\n1) يجب عليك امتلاك تطبيق iTunes على جهازك.\r\n2) من شريط القائمة العلوي، اختر Account و قم بتسجيل الدخول.\r\n3) بعد تسجيل دخولك سوف تجد من نفس قائمة الـAccount، خيار الـ Redeem قم بالضغط عليه.\r\n4) أدخل رمز القسيمة.\r\n5) مبروك! يمكنك الآن التمتع بشراء المحتوى المدفوع بعد أن أصبح حسابك مشحون.", "how_to_use_en": "Using iPhone, iPad or iPod:\r\n1) Log into your account in the App Store.\r\n2) Scroll down until you reach the end, the choose Redeem.\r\n3) Click on the second choice You can enter your code manually, then copy the code you have received, and paste it in the required field.\r\n4) Tap Redeem at the top of the screen.\r\n5) Congrats! Enjoy Purchasing.\r\n\r\nUsing Computer :\r\n1) Open iTunes on your computer.\r\n2) Click on the Account menu, then sign in.\r\n3) From the Account menu, choose Redeem.\r\n4) Enter your code, then click Redeem button.\r\n5) Congrats! Enjoy Purchasing.", "retail_price_before_vat": 37.5, "retail_price_vat_amt": 0, "retail_price_after_vat": 37.5 }, "qty": 1, "total_price": 7.5, "fees": 1, "vat": 1, "total_order": 9.5, "purchase_at": "2024-10-14 15:28:06", "cards": [ { "card": "5eb71bfe52262", "serial": "5eb71bfe52298", "pin": "12312312", "expiry_date": "2025-10-29", "barcode_link": "https://daleelstore.com/ar/giftcards/cbhl651ea90835c68" } ] } ``` -------------------------------- ### GET /api/marketplace/v1/get/balance Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/check-e-vouchers Retrieves the current balance for the marketplace account. Requires authentication. ```APIDOC ## GET /api/marketplace/v1/get/balance ### Description Retrieves the current balance for the marketplace account. Requires authentication. ### Method GET ### Endpoint /api/marketplace/v1/get/balance ### Parameters #### Query Parameters None #### Request Body None ### Request Example ```bash curl --location 'https://daleelapi.com/api/marketplace/v1/get/balance' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' ``` ### Response #### Success Response (200) - **status_code** (integer) - The HTTP status code of the response. - **status** (boolean) - Indicates if the request was successful. - **balance** (integer) - The current balance of the account. #### Response Example ```json { "status_code": 200, "status": true, "balance": 50000000000 } ``` #### Error Responses - **401**: Unauthorized - Invalid or expired token. - **403**: Forbidden - Insufficient permissions. - **404**: Not Found - The requested resource does not exist. - **10000**: Blocked Account - **10001**: Parameter validation error - **10002**: Not merchant Account, or Unauthorized to use api - **10003**: Requested item is out of stock - **10004**: Balance amount less than purches total - **10005**: Briefly unavailable for scheduled maintenance, Check back in a minute. - **10006**: Reference code duplicated - **10007**: Reference not found ``` -------------------------------- ### GET /api/marketplace/v1/get/balance Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/check-e-vouchers Queries the current account balance before performing purchase operations. ```APIDOC ## GET /api/marketplace/v1/get/balance ### Description Allows users to query their current balance. Requires an Authorization header. ### Method GET ### Endpoint /api/marketplace/v1/get/balance ### Parameters #### Header Parameters - **Authorization** (string) - Required - Bearer token for authentication - **Accept** (string) - Optional - Expected response format ### Response #### Success Response (200) - **status_code** (number) - HTTP status code - **status** (boolean) - Request success status - **balance** (number) - Current account balance ``` -------------------------------- ### GET /products Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/get-token-password Retrieves a list of digital products available in the marketplace, including store information and redemption instructions. ```APIDOC ## GET /products ### Description Fetch a list of digital products available on the DaleelStore marketplace. Each item includes localized names, pricing, VAT information, and instructions on how to redeem the digital voucher. ### Method GET ### Endpoint /products ### Parameters None ### Response #### Success Response (200) - **status_code** (integer) - HTTP status code - **status** (boolean) - Request success status - **items** (array) - List of product objects #### Response Example { "status_code": 200, "status": true, "items": [ { "id": 1125, "name_en": "iTunes", "name_ar": "آيتونز", "price": 103.25, "currency": "SAR", "is_active": 1, "image": "https://s101.daleelstore.com/public/products/p_f_3_1699718341.png" } ] } ``` -------------------------------- ### GET /merchants Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/check-e-vouchers Retrieves a list of available merchants with their details and redemption methods. ```APIDOC ## GET /merchants ### Description Fetches a list of merchants available on the Daleel Store platform, including product details and how-to-use instructions for various regions. ### Method GET ### Endpoint /merchants ### Parameters None ### Response #### Success Response (200) - **status_code** (integer) - The HTTP status code. - **status** (boolean) - Indicates if the request was successful. - **merchants** (array) - List of merchant objects. - **id** (integer) - Unique identifier for the merchant. - **name_en** (string) - Merchant name in English. - **description_en** (string) - Merchant description in English. - **how_to_use_en** (string) - Instructions for redeeming the gift card in English. - **image** (string) - URL to the merchant logo/image. - **stores** (array) - List of supported store regions. #### Response Example { "status_code": 200, "status": true, "merchants": [ { "id": 106, "name_en": "Yalla Ludo", "description_en": "Traditional Games, In Modern Way", "how_to_use_en": "1) Go to https://www.yallapay.live...", "image": "https://s101.daleelstore.com/public/products/p_f_106_1674459565.png", "stores": [ { "id": 11, "name_en": "Global Store" } ] } ] } ``` -------------------------------- ### Example Response from Purchase Service Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/get-all-purchase This JSON object represents a successful response (HTTP 200) from the purchase service, detailing order information, item specifics, and usage instructions. ```json { "status_code": 200, "status": true, "order_details": { "total_price": 53.44, "fees": 0, "vat": 0, "total_order": 53.44, "has_account_balance": 1 }, "item": { "id": 31, "name_en": "iTunes", "name_ar": "آيتونز", "category_name_en": "App Stores", "category_name_ar": "متاجر رقمية", "amount_en": "$15", "amount_ar": "15 دولار", "vat_type": "voucher", "vat_percentage": 15, "price": 56.25, "currency": "SAR", "cost_price_before_vat": 53.44, "cost_price_vat_amt": 0, "cost_price_after_vat": 53.44, "is_active": 1, "image": "https://s101.daleelstore.com/public/products/p_f_3_1699718341.png", "store": { "id": 1, "name_ar": "المتجر الأمريكي", "name_en": "US Store", "icon": "https://s101.daleelstore.com/public/countries/1_1628407245.png" }, "how_to_use_ar": "طريقة الشحن بإستخدام الآيفون، الآيباد أو الآيبود :\r\n1) قم بتسجيل الدخول إلى حسابك في الـ App Store.\r\n2) قم بالنزول إلى آخر الصفحة، ثم قم بإختيار أيقونة Redeem.\r\n3) اختر الخيار الثاني You can also enter your code manually، و من ثم قم بنسخ الرمز المُرسل إليك و لصقه في الخانة المطلوبة.\r\n4) من أعلى الصفحة أختر كلمة Redeem ليتم إستبدال رمز.\r\n5) مبروك! يمكنك الآن التمتع بشراء المحتوى المدفوع بعد أن أصبح حسابك مشحون.\r\n\r\nطريقة الشحن بإستخدام الحاسوب :\r\n1) يجب عليك امتلاك تطبيق iTunes على جهازك.\r\n2) من شريط القائمة العلوي، اختر Account و قم بتسجيل الدخول.\r\n3) بعد تسجيل دخولك سوف تجد من نفس قائمة الـAccount، خيار الـ Redeem قم بالضغط عليه.\r\n4) أدخل رمز القسيمة.\r\n5) مبروك! يمكنك الآن التمتع بشراء المحتوى المدفوع بعد أن أصبح حسابك مشحون.", "how_to_use_en": "Using iPhone, iPad or iPod:\r\n1) Log into your account in the App Store.\r\n2) Scroll down until you reach the end, the choose Redeem.\r\n3) Click on the second choice You can enter your code manually, then copy the code you have received, and paste it in the required field.\r\n4) Tap Redeem at the top of the screen.\r\n5) Congrats! Enjoy Purchasing.\r\n\r\nUsing Computer :\r\n1) Open iTunes on your computer.\r\n2) Click on the Account menu, then sign in.\r\n3) From the Account menu, choose Redeem.\r\n4) Enter your code, then click Redeem button.\r\n5) Congrats! Enjoy Purchasing.", "retail_price_before_vat": 56.25, "retail_price_vat_amt": 0, "retail_price_after_vat": 56.25 } } ``` -------------------------------- ### GET /merchants Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/check-e-vouchers Retrieves a list of all supported merchants available in the catalog for placing orders. ```APIDOC ## GET /merchants ### Description Fetch all merchants supported in the catalog. This list is required to initiate orders. ### Method GET ### Endpoint /merchants ### Parameters #### Header Parameters - **Authorization** (string) - Required - Bearer token for authentication. - **Accept** (string) - Optional - Expected response format. - **Content-Type** (string) - Required - Must be set to 'application/json'. ### Request Example GET /merchants Authorization: Bearer TOKEN Content-Type: application/json ### Response #### Success Response (200) - **status_code** (integer) - HTTP status code. - **status** (boolean) - Request success status. - **categories** (array) - List of available merchant categories. #### Response Example { "status_code": 200, "status": true, "categories": [ {"id": 1, "name_ar": "منصات ألعاب", "name_en": "Games Cards"}, {"id": 3, "name_ar": "بطاقات تسوق", "name_en": "Shop Cards"} ] } ``` -------------------------------- ### GET /api/marketplace/v1/get/evouchers-by-merchant/{id}/{store_id} Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/apis/check-e-vouchers Retrieves a list of e-vouchers associated with a specific merchant and store. ```APIDOC ## GET /api/marketplace/v1/get/evouchers-by-merchant/{id}/{store_id} ### Description Retrieves a list of e-vouchers associated with a specific merchant and store. This endpoint is useful for fetching available digital vouchers for a given merchant and their designated store. ### Method GET ### Endpoint /api/marketplace/v1/get/evouchers-by-merchant/{id}/{store_id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the merchant. - **store_id** (string) - Required - The unique identifier of the store associated with the merchant. #### Query Parameters None #### Request Body None ### Request Example ```bash curl --location --globoff 'https://daleelapi.com/api/marketplace/v1/get/evouchers-by-merchant/3/{store_id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` ### Response #### Success Response (200) - **data** (array) - A list of e-voucher objects. - **voucher_id** (string) - The unique identifier for the e-voucher. - **merchant_id** (string) - The identifier of the merchant. - **store_id** (string) - The identifier of the store. - **title** (string) - The title of the e-voucher. - **description** (string) - A description of the e-voucher. - **value** (number) - The monetary value of the e-voucher. - **currency** (string) - The currency of the e-voucher value. - **expiry_date** (string) - The expiration date of the e-voucher in YYYY-MM-DD format. - **is_active** (boolean) - Indicates if the e-voucher is currently active. #### Response Example ```json { "data": [ { "voucher_id": "v123", "merchant_id": "3", "store_id": "s456", "title": "10% Off Your Next Purchase", "description": "Get 10% off any item in the store.", "value": 10.00, "currency": "USD", "expiry_date": "2024-12-31", "is_active": true } ] } ``` ``` -------------------------------- ### GET /api/marketplace/v1/purchase/details/{id} Source: https://app.theneo.io/daleelstore/daleelbusiness-marketplace/get-started Retrieves the detailed information for a specific purchase using its unique identifier. ```APIDOC ## GET /api/marketplace/v1/purchase/details/{id} ### Description Retrieves the full details of a specific purchase, including item information, pricing, and card details. ### Method GET ### Endpoint /api/marketplace/v1/purchase/details/{id} ### Parameters #### Path Parameters - **id** (number) - Required - The unique identifier of the purchase. ### Request Example ``` curl --location 'https://daleelapi.com/api/marketplace/v1/purchase/details/21304401' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` ### Response #### Success Response (200) - **status_code** (number) - HTTP status code - **status** (boolean) - Request success status - **purchase_id** (number) - Unique ID of the purchase - **purchase_status** (string) - Current status of the purchase - **item_info** (object) - Details of the purchased item - **total_order** (number) - Final order total - **cards** (array) - List of digital cards/vouchers associated with the purchase #### Response Example { "status_code": 200, "status": true, "purchase_id": 21304401, "purchase_status": "complete", "item_info": { "name_en": "iTunes" }, "total_order": 9.5, "purchase_at": "2024-10-14 15:28:06" } ```