Minted Connect
  1. Checkout
Minted Connect
E-Commerce API
  • Partner
  • E-Commerce API
  • Catalog
    • Products
      GET
    • Get Product
      GET
    • Prices
      GET
    • Categories
      GET
  • Customers
    • Create Customer
      POST
    • Update Customer
      PATCH
    • Remove Customer Id
      DELETE
    • Get Customer
      GET
  • Customer Address
    • Customer Address - List
      GET
    • Customer Address - Delete
      DELETE
    • Customer Address - Create (Shipping)
      POST
    • Customer Address - Create (Billing)
      POST
    • Customer Address - Create Multiple
      POST
  • Checkout
    • Get Basket
      GET
    • Get Incomplete Baskets
      GET
    • Add to Basket (New basket)
      POST
    • Add to Basket (Existing Basket)
      POST
    • Set Existing Address
      PATCH
    • Set Custom Address
      PATCH
    • Update Item
      PATCH
    • Delete Item
      DELETE
    • Clear Basket (Delete Items)
      DELETE
    • Payment Get All Types
      GET
    • Complete Basket
      PUT
    • Get Orders
      GET
    • Get Order
      POST
  • Legal
    • Legal Types
    • Partner Legal PDF
  1. Checkout

Clear Basket (Delete Items)

Testing
Testing Env
https://api.staging.mintedconnect.com
Testing Env
https://api.staging.mintedconnect.com
DELETE
https://api.staging.mintedconnect.com
/partner/ecom/basket/empty
Last modified:2024-08-11 13:02:14
Maintainer:Not configured

Request

Authorization
Provide your encrypted digest scheme data in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Digest username=guest, realm="test", nonce="2", uri="/uri", response="***"
Header Params
x-client-id
string 
required
Default value: web
Default:
web
api-version
string 
optional
Latest version: 3
Default:
3
Accept-Language
string 
optional
Default:
tr
Body Params application/json
external_customer_id
string 
required
>= 1 characters<= 110 characters
cart_token
string 
required
>= 32 characters<= 32 characters
Example
{
    "external_customer_id": "{{external_customer_id}}",
    "cart_token": "{{cart_token}}"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.staging.mintedconnect.com/partner/ecom/basket/empty' \
--header 'x-client-id;' \
--header 'api-version: 3' \
--header 'Accept-Language: tr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "external_customer_id": "MTD0018232",
    "cart_token": "{{cart_token}}"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "data": {
        "pricefix": {
            "remaining": -2,
            "nextUpdate": "2024-07-19T12:42:34+03:00"
        },
        "id": 207,
        "guid": "8C624BD0-3BE4-45A2-9B63-D570477007FA",
        "order_creation_status": "basket",
        "external_id": null,
        "increment_id": "MC_66C7446E7F53E",
        "token": "KOQS6Kh6j3dd0TdcmXqoC68h5O6i2tc2",
        "price": 0,
        "tax": 0,
        "total": 0,
        "payment_cost": 0,
        "paid_total": 0,
        "currency_code": "TRY",
        "status_id": 1,
        "status_name": "Created",
        "customer": {
            "external_id": "66b3666fcc19b0487e691695",
            "firstname": "John",
            "middlename": "",
            "lastname": "Due",
            "fullname": "John Due",
            "email": "[email protected]",
            "phone": "+905330000000",
            "gender": "M",
            "identity_number": "12345677937",
            "birthdate": "1970-01-31"
        },
        "shippingaddress": {
            "id": 6,
            "tax_number": "12312312",
            "external_id": "66b3666fcc19b0487e691695",
            "fullname": "John Due",
            "phone": "+905330000000",
            "city": "İstanbul",
            "county": "Beykoz",
            "district": "Acarlar Mah.",
            "street": "Sokak adı",
            "zipcode": "",
            "address": "54 sok. No: 12"
        },
        "billingaddress": {
            "id": 7,
            "type": "billing",
            "invoice_type": "Individual",
            "company_name": "Minted LTD",
            "tax_office": "Beykoz",
            "tax_number": "2838293932",
            "external_id": "66b3666fcc19b0487e691695",
            "fullname": "John Due",
            "phone": "+905330000000",
            "city": "İstanbul",
            "county": "Beykoz",
            "district": "Acarlar Mah.",
            "street": "Sokak adı",
            "zipcode": "",
            "address": "54 sok. No: 13"
        },
        "payment": null,
        "order_at": "2024-07-19T09:39:03.000000Z",
        "items": []
    },
    "success": true,
    "code": 0,
    "message": ""
}
🟠401Unauthorized
🟠404Record Not Found
Previous
Delete Item
Next
Payment Get All Types
Built with