Skip to content

Create a service sheet

post
https://api.mercadoe.com/v1/service-sheets-document

Creates a new service sheet by providing the Description, Status, and other details.
Each item of serviceSheets accepts costObjects, with the cost center and the apportionment of the item. For every cost object, send its share in costRate, quantity or costAmount. When more than one is sent, costRate is used first, then quantity, then costAmount, and the others must match it (tolerance 0.01), as returned by GET /v1/service-sheets-document/{serviceSheetHeaderId}. The shares must add up to 100%, to the item quantity or to the item total value (the items when sent, otherwise quantity x value), rounded to 2 decimals. A single cost object without a share counts as 100%. These rules return 400. An unknown cost center is reported as an error in the webhook.

Request

Headers

X-ME-CORRELATION-ID
string
Internal client code to be identified in the webhook. It can be, for example, a product code in your ERP, an order number, etc.

Body

application/json
clientOrderId
string | null
Order ID in the client’s ERP
contractId
int32 | null
ME Contract ID
clientContractId
string | null
Contract ID in the client’s ERP
businessOrganizations
array of object | null
Business organizations
createdBy
string
User who created the service sheet
serviceSheets
array of object
List of service sheets
orderId
int32 | null
ME Order ID
currencyCode
string | null
Currency in alphabetic code (for more information, please refer to: https://www.iso.org/iso-4217-currency-codes.html).
clientSupplierCode
string | null
Supplier code in the client’s ERP
attributes
array of object | null

Responses

202
400
Accepted

Body

application/json
correlationId
string
Credentials
shell