Suppliers

Copy a Supplier

This endpoint copies an existing supplier by ID.

post/inventory/suppliers/{supplierId}/copy

Request body

namestring required

Name to give the duplicated supplier. Typically the source supplier's name with a "(copy)" suffix. Trimmed; 1-120 characters and must not contain HTML.

Example request

{
  "name": "Elemis"
}

Response

The supplier was successfully retrieved

Example response

{
  "data": {
    "name": "Elemis",
    "email": "orders@example.com",
    "phone": "+44 20 8012 3456",
    "address_1": "Unit E, Dominion Way",
    "address_2": "Rustington",
    "city": "Littlehampton",
    "county": "West Sussex",
    "country": "UK",
    "postcode": "BN16 3HQ"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.