{
  "info" : {
    "name" : "Mirakl Platform for Services APIs - Front",
    "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variables" : [ ],
  "item" : [ {
    "name" : "Invoicing and Accounting",
    "item" : [ {
      "name" : "IV01 - List accounting documents",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/invoices",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "invoices" ],
          "variable" : null,
          "query" : [ {
            "key" : "currency",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "end_date",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "invoice_id",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "issuing_user_types",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "pay_out_psp_codes",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "payment_status",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "payment_voucher_number",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "seller_billing_cycle_id",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "shop",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "shop_model",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "shop_operator_internal_id",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "start_date",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "states",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "type",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "SBC11 - List seller billing cycles",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/seller-billing-cycles",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "seller-billing-cycles" ],
          "variable" : null,
          "query" : [ {
            "key" : "currency",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "end_date",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "id",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "pay_out_psp_code",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "pay_out_state",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "payment_voucher_number",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "shop_id",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "start_date",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    } ]
  }, {
    "name" : "Messages",
    "item" : [ {
      "name" : "SOF43 - Create a thread on a service",
      "request" : {
        "method" : "post",
        "url" : {
          "raw" : "{{URL}}/api/mms/services/:service_code/threads",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "services", ":service_code", "threads" ],
          "variable" : [ {
            "key" : ":service_code",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        }, {
          "key" : "Content-Type",
          "value" : "multipart/form-data"
        } ],
        "body" : {
          "formdata" : [ {
            "key" : "files",
            "type" : "file",
            "contentType" : null,
            "value" : null,
            "description" : null
          }, {
            "key" : "thread_input",
            "type" : "text",
            "contentType" : "application/json",
            "value" : "{\n  \"topic\": {\n    \"type\": \"FREE_TEXT\",\n    \"value\": \"Questions about this service\"\n  },\n  \"body\": \"Hello, what is this ?\",\n  \"to\": [\"SHOP\"]\n}\n\n",
            "description" : "The content of the thread: body, topic, participants..."
          } ],
          "mode" : "formdata"
        }
      },
      "response" : [ ]
    }, {
      "name" : "SOR43 - Create a thread on a service order",
      "request" : {
        "method" : "post",
        "url" : {
          "raw" : "{{URL}}/api/mms/orders/:order_id/threads",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "orders", ":order_id", "threads" ],
          "variable" : [ {
            "key" : ":order_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        }, {
          "key" : "Content-Type",
          "value" : "multipart/form-data"
        } ],
        "body" : {
          "formdata" : [ {
            "key" : "files",
            "type" : "file",
            "contentType" : null,
            "value" : null,
            "description" : null
          }, {
            "key" : "thread_input",
            "type" : "text",
            "contentType" : "application/json",
            "value" : "{\n  \"topic\": {\n    \"type\": \"FREE_TEXT\",\n    \"value\": \"Questions about my order\"\n  },\n  \"body\": \"Hello, I have recently order a service and I have a few questions ...\",\n  \"to\": [\"SHOP\"]\n}\n\n",
            "description" : "The content of the thread: body, topic, participants..."
          } ],
          "mode" : "formdata"
        }
      },
      "response" : [ ]
    } ]
  }, {
    "name" : "Orders",
    "item" : [ {
      "name" : "SOR04 - Update an order",
      "request" : {
        "method" : "put",
        "url" : {
          "raw" : "{{URL}}/api/mms/orders/:order_id",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "orders", ":order_id" ],
          "variable" : [ {
            "key" : ":order_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        }, {
          "key" : "Content-Type",
          "value" : "application/json"
        } ],
        "body" : {
          "raw" : "{\n  \"custom_attribute_values\" : [ {\n    \"code\" : \"EQUIPT_TO_BRING\",\n    \"type\" : \"TEXT\",\n    \"value\" : \"a picnic\"\n  }, {\n    \"code\" : \"AGE_MIN\",\n    \"type\" : \"INTEGER\"\n  } ]\n}\n",
          "mode" : "raw"
        }
      },
      "response" : [ ]
    }, {
      "name" : "SOR21 - Accept an order",
      "request" : {
        "method" : "put",
        "url" : {
          "raw" : "{{URL}}/api/mms/orders/:order_id/accept",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "orders", ":order_id", "accept" ],
          "variable" : [ {
            "key" : ":order_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "SOR22 - Refuse an order",
      "request" : {
        "method" : "put",
        "url" : {
          "raw" : "{{URL}}/api/mms/orders/:order_id/refuse",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "orders", ":order_id", "refuse" ],
          "variable" : [ {
            "key" : ":order_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "SOR25 - Consume an order",
      "request" : {
        "method" : "put",
        "url" : {
          "raw" : "{{URL}}/api/mms/orders/:order_id/consume",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "orders", ":order_id", "consume" ],
          "variable" : [ {
            "key" : ":order_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ {
          "key" : "Content-Type",
          "value" : "application/json"
        } ],
        "body" : {
          "raw" : "{\n  \"voucher_code\" : \"AD65\"\n}\n",
          "mode" : "raw"
        }
      },
      "response" : [ ]
    }, {
      "name" : "SOR51 - Get the evaluation of an order",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/mms/orders/:order_id/evaluation",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "orders", ":order_id", "evaluation" ],
          "variable" : [ {
            "key" : ":order_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    } ]
  }, {
    "name" : "Platform Settings",
    "item" : [ {
      "name" : "AF01 - List all custom fields",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/additional_fields",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "additional_fields" ],
          "variable" : null,
          "query" : [ {
            "key" : "entities",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "CH11 - List all enabled channels",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/channels",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "channels" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "CUR01 - List currency codes and labels",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/currencies",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "currencies" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "DO01 - List all document types",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/documents",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "documents" ],
          "variable" : null,
          "query" : [ {
            "key" : "entities",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "L01 - List locale codes and labels",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/locales",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "locales" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "PC01 - List platform configurations",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/platform/configuration",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "platform", "configuration" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "RE01 - List reasons",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/reasons",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "reasons" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    } ]
  }, {
    "name" : "Services",
    "item" : [ {
      "name" : "SM11 - List service models",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/mms/models",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "mms", "models" ],
          "variable" : null,
          "query" : [ {
            "key" : "category_code",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "model_code",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "location_type",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "booking_type",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "consumption_type",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    } ]
  }, {
    "name" : "Stores",
    "item" : [ {
      "name" : "S30 - List shop's documents",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/shops/documents",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "shops", "documents" ],
          "variable" : null,
          "query" : [ {
            "key" : "shop_ids",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "include_deleted",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "updated_since",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "S31 - Download documents for one or multiple shops",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/shops/documents/download",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "shops", "documents", "download" ],
          "variable" : null,
          "query" : [ {
            "key" : "shop_ids",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "document_ids",
            "value" : "",
            "disabled" : true
          }, {
            "key" : "type_codes",
            "value" : "",
            "disabled" : true
          } ]
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/octet-stream"
        } ],
        "body" : null
      },
      "response" : [ ]
    }, {
      "name" : "S32 - Upload business documents to associate with a shop",
      "request" : {
        "method" : "post",
        "url" : {
          "raw" : "{{URL}}/api/shops/documents",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "shops", "documents" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        }, {
          "key" : "Content-Type",
          "value" : "multipart/form-data"
        } ],
        "body" : {
          "formdata" : [ {
            "key" : "files",
            "type" : "file",
            "contentType" : null,
            "value" : null,
            "description" : null
          }, {
            "key" : "shop_documents",
            "type" : "text",
            "contentType" : "application/json",
            "value" : "{\n  \"shop_documents\": [\n    {\n      \"file_name\": \"filename1.txt\",\n      \"type_code\": \"PASSPORT\"\n    },\n    {\n      \"file_name\": \"filename2.txt\"\n      \"type_code\": \"ID_DOCUMENT\"\n    }\n  ]\n}\n",
            "description" : "A descriptor associated to the files"
          }, {
            "key" : "shop_id",
            "type" : "text",
            "contentType" : null,
            "value" : null,
            "description" : "the shop identifier to add the documents to"
          } ],
          "mode" : "formdata"
        }
      },
      "response" : [ ]
    }, {
      "name" : "S33 - Delete a shop document",
      "request" : {
        "method" : "delete",
        "url" : {
          "raw" : "{{URL}}/api/shops/documents/:document_id",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "shops", "documents", ":document_id" ],
          "variable" : [ {
            "key" : ":document_id",
            "value" : "value"
          } ],
          "query" : null
        },
        "headers" : [ ],
        "body" : null
      },
      "response" : [ ]
    } ]
  }, {
    "name" : "Users",
    "item" : [ {
      "name" : "RO02 - List shop roles",
      "request" : {
        "method" : "get",
        "url" : {
          "raw" : "{{URL}}/api/users/shops/roles",
          "host" : [ "{{URL}}" ],
          "path" : [ "", "api", "users", "shops", "roles" ],
          "variable" : null,
          "query" : null
        },
        "headers" : [ {
          "key" : "Accept",
          "value" : "application/json"
        } ],
        "body" : null
      },
      "response" : [ ]
    } ]
  } ],
  "auth" : {
    "type" : "bearer",
    "bearer" : [ {
      "key" : "token",
      "value" : "{{FRONT_BEARER_TOKEN}}",
      "type" : "string"
    } ],
    "apikey" : null
  }
}