POST /partners/supply-delay

Create new partner supply delay. You can send either both start and end of validity or only end of validity. If no date for start sent, current time will be used as validity start.

Headers

  • X-Application-Name string

Query parameters

  • client_id string Required

    Client identifier

Body

  • valid_from string(date-time)

    Validity start date and time, if you don't send it, the actual date and time will be used

  • valid_to string(date-time) Required

    validity end date and time

Responses

  • 201

    OK

    Hide response attributes Show response attributes object
    • data object
      Hide data attributes Show data attributes object
      • valid_from string(date-time)

        Validity start date and time, if you don't send it, the actual date and time will be used

      • valid_to string(date-time) Required

        validity end date and time

    • result object
      Hide result attributes Show result attributes object
      • code integer(int)
      • status string
POST /partners/supply-delay
curl \
 -X POST https://mpapi.proxy.omnicado.com/v1/partners/supply-delay?client_id=yourClientId&client_id=api_token_value \
 -H "Content-Type: application/json" \
 -H "X-Application-Name: myApplicationName" \
 -d '{"valid_from":"2017-01-27 00:00:00","valid_to":"2017-02-05 00:00:00"}'
Request example
# Headers
X-Application-Name: myApplicationName

# Payload
{
  "valid_from": "2017-01-27 00:00:00",
  "valid_to": "2017-02-05 00:00:00"
}
Request examples
# Headers
X-Application-Name: myApplicationName

# Payload
{
  "valid_from": "2017-01-27 00:00:00",
  "valid_to": "2017-02-05 00:00:00"
}
Response examples (201)
{
  "data": {
    "valid_from": "2017-01-27 00:00:00",
    "valid_to": "2017-02-05 00:00:00"
  },
  "result": {
    "code": 201,
    "status": "OK"
  }
}
Response examples (201)
{
  "data": {
    "valid_from": "2017-01-27 00:00:00",
    "valid_to": "2017-02-05 00:00:00"
  },
  "result": {
    "code": 201,
    "status": "OK"
  }
}