Purchase Contract
This record enables you to take advantage of contracted quantity-based terms and discounts when creating purchase orders.
This record is available only when the Purchase Contracts feature is enabled at Setup > Company > Setup Tasks > Enable Features (Administrator), on the Transactions subtab.
In the UI, you access this record at Vendor Dashboard > Transactions > Enter Purchase Contracts (Administrator).
For help working with this record in the UI, see Creating Purchase Contracts.
The item element on this record is not accessible through REST web services.
The purchase contract record type includes the following actions from the Actions Framework:
-
New
-
Make Copy
-
Make Copy without Pricing Tiers
-
Email
The REST API Browser includes information about the field names and field types of the purchase contract record and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s purchaseContract reference page.
For information about using the REST API Browser, see The REST API Browser.
Record IDs
The record ID for a purchase contract REST record is purchaseContract.
Prerequisites
This record is available only when the Purchase Contract feature is enabled at Setup > Company > Setup Tasks > Enable Features (Administrator), on the Transactions subtab.
Code Samples
The following examples show how to read, create, update, or delete a purchase contract:
Read:
GET {{REST_SERVICES}}/record/v1/purchaseContract/${transaction-id}
Create:
POST {{REST_SERVICES}}/record/v1/purchaseContract { "entity": { "id": {entity-id} }, "effectivitybasedon": { "id" : "ORDERDATE" }, "item": { "items": [ { "item": { "id": "${item-id}" }, "itemPricing": { "baserate": 10.0, } }
}
Update:
PATCH {{REST_SERVICES}}/record/v1/purchaseContract/${transaction-id}
{
"memo" : "Memo text"
}
Delete:
DELETE {{REST_SERVICES}}/record/v1/purchaseContract/${transaction-id}