Create an order for dropship partner.

POST /api-drop/v2/orders

Body Required

  • alternative_id string Required

    order's partner ID

  • product_id integer Required

    product's dropship ID

  • buyer string Required

    order's buyer

  • street string Required

    street

  • additional_street string

    additional_street

  • postcode string Required

    postcode

  • city string Required

    city

  • country string Required

    country

  • buyer_phone string Required

    buyer's phone

  • buyer_email string Required

    buyer's email

  • extra string

    order's extra

Responses

  • 200

    create an order for dropship partner

    Hide response attributes Show response attributes object
    • code integer
    • msg string
    • public_id string Required

      order's public id

  • 400

    Bad request

    Hide response attributes Show response attributes object
    • code integer
    • msg string
  • 500

    Internal server error

    Hide response attributes Show response attributes object
    • code integer
    • msg string
POST /api-drop/v2/orders
curl \
 -X POST https://bi.agora.place/api-drop/v2/orders \
 -H "apikey: $API_KEY" \
 -d '{"alternative_id":"string","product_id":42,"buyer":"string","street":"string","additional_street":"string","postcode":"string","city":"string","country":"string","buyer_phone":"string","buyer_email":"string","extra":"string"}'
Request example
{
  "alternative_id": "string",
  "product_id": 42,
  "buyer": "string",
  "street": "string",
  "additional_street": "string",
  "postcode": "string",
  "city": "string",
  "country": "string",
  "buyer_phone": "string",
  "buyer_email": "string",
  "extra": "string"
}
Request examples
{
  "alternative_id": "string",
  "product_id": 42,
  "buyer": "string",
  "street": "string",
  "additional_street": "string",
  "postcode": "string",
  "city": "string",
  "country": "string",
  "buyer_phone": "string",
  "buyer_email": "string",
  "extra": "string"
}
Response examples (200)
{
  "code": 200,
  "msg": "Success",
  "public_id": "A-12345"
}
Response examples (200)
{
  "code": 200,
  "msg": "Success",
  "public_id": "A-12345"
}
Response examples (400)
{
  "code": 400,
  "msg": "Bad Request"
}
Response examples (400)
{
  "code": 400,
  "msg": "Bad Request"
}
Response examples (500)
{
  "code": 500,
  "msg": "Internale Server Error"
}
Response examples (500)
{
  "code": 500,
  "msg": "Internale Server Error"
}