Delivery Channel

api/delivery/channel endpoint documentation


New delivery channel

Description Creates new delivery channel for a given store. If the store_uuid is not explicitly passed during the call to the endpoint then the delivery will be assigned to the last created store in the account.
Endpoint url api/delivery/channel/create
Method POST
Params
Required
Headers
Name Type Value Description
token string - The token obtained during the account creation call.
Data params
Name Type Value Description
name string - Name for the created delivery channel.
price decimal 0.00 - 10000.00 Price for the delivery.
Optional
Data params
Name Type Value Description
store_uuid string - If the parameter is not given then the delivery channel will be assigned to the last created store in the account.
note string - A short note that will be shown to a user about the delivery.
Success response

{
    "code": 200,
    "body": {
        "data": {
            "uuid": "c1690258-7983-473b-8bb8-7302c7ce2131",
            "store": {
                "uuid": "fdab1d05-6dc0-575d-8916-78e84ce8ccc2"
            }
        }
    }
}
Error response If wrong/non-existing store_uuid given:

{
    "code": 422,
    "body": {
        "data": [],
        "errors": {
            "store_uuid": [
                "The given store uuid could not be found."
            ]
        }
    }
}

BuyNowJs © 2018