Batch Service

  • Through this service; You can follow the latest status of the controls in the services.
  • It only works on price update and stock update services.
  • It is sufficient to send the batch Id given to you as a parameter.
  • GET https://marketplace-stg.modanisa.com/api/marketplace/getBatchRequest
    Parameter Description Data Type Compulsory
    batchId It is the Batch ID given in the response data of the services. String Yes

    Status Description:

    • complete: During the query, the "complete" type indicates that the operation has been completed.
    • inprogress: During the query, the "inprogress" type indicates that the processes are still in progress.
    • failed: During the query, the "failed" type indicates that something went wrong and the request failed.

    Request:
    api/marketplace/getBatchRequest?batchId=211021-5XZCX6QG1G4PXHSJQ9FVLLGQ1UGMR8YLQYV7Q47GF4M
    

    Success Response:
    {
        "batchId": "211021-5XZCX6QG1G4PXHSJQ9FVLLGQ1UGMR8YLQYV7Q47GF4M",
        "status": "complete",
        "created": "2021-10-21T12:04:38+0300",
        "items": {
            "000000100071857003": {
                "variantId": "000000100071857003",
                "status": "complete",
                "errors": []
            },
            "8681360365248": {
                "barcode": "8681360365248",
                "status": "failed",
                "errors": [
                    "Barcode: Barcode does not match vendor ID or no such barcode. (8681360365248)"
                ]
            }
        }
    }
    
    
    Error Response:
    {
        "message": "Not Found BatchId: 211021-EUWQJHSTQSMDO9Y97371YZOP3JL1TJGVHAEESQ92E2R",
        "code": 404
    }