Skip to content

Create a contract associated to a `clientId`

post
https://api.mercadoe.com/v1/supplier-catalogs/{clientId}/agreements

Creates a new Contract associated to a clientId by providing the Description, Status, and other details.

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.

Path Parameters

clientId
int32
required
The `clientId` is a unique identifier of a buyer to whom this punchout product is assigned.

Body

application/json
clientContractId
string | null
Contract Id in client’s ERP
description
string
required
Contract brief description
category
string | null
Contract category
clientSupplierId
string | null
Supplier Id in client’s ERP
integrationTag
string
Identification of the ME user used in the integration.
startDate
date-time
required
Contract start date
endDate
date-time
required
Contract end date
clientPaymentConditionId
string | null
Payment condition code
incoTerms
string | null
Freight code (Incoterms)
currencyCode
string
required
Currency in alphabetic code (for more information, please refer to: https://www.iso.org/iso-4217-currency-codes.html).
deliveryDeadline
int32 | null
Delivery deadline
status
int32
required
Contract status
totalValue
float
required
Contract total value
fixedValue
float | null
Contract fixed value
usedValue
float | null
Contract used value
note
string | null
Contract notes
isPreOrderCreatedAutomatically
boolean | null
This flag indicates if the pre-order is generated automatically.
isControlledByBalance
boolean | null
This flag indicates if the contract balance is controlled by workflow.
isRequestEstimatedPriceUsedInPreOrder
boolean | null
This flag indicates if the request estimated price is used in pre-order creation.
isPreOrderBlockedIfEstimatedRequestDateGreaterThanContractEndDate
boolean | null
This flag indicates if the pre-order is blocked if the request estimated date is greather than contract end date.
purchasingGroup
string | null
Purchasing Group
attributes
array of object | null
Attributes of the contract, consisting of a name, a value and a description.
businessOrganizations
array of object | null
List with the Business Organizations comprising the Company Code, the Entity Type and their Descriptions.
items
array of object | null
List with the contract items

Responses

202
400
Accepted

Body

application/json
correlationId
string