### Example Response: Current Instruction Text (HTML)
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use_case_manage_supplier_negotiation_clob_text.html
Example response body showing the current instruction text for a supplier negotiation, formatted as HTML. This is the content that can be updated via the PATCH request.
```html
Request For Quote: Laptop Replacement
Purpose: Find the supplier that offers the highest quality and best value laptops.
InFusion generally uses the following criteria in evaluating and comparing Supplier responses(the criteria are not necessarily listed in order of importance):
-Experience and number of years in business
- Financial stability of the Supplier's organization
- Responsiveness to the requirements of the project as set forth in the [@Document Type@]
- Demonstrated understanding of the goals and objectives of the project and a logical plan for providing product/services within the required time frames
- Agreement to Vision Operations standard contract terms
-Competitive Pricing
```
--------------------------------
### Example Response: Supplier Negotiation Instruction Text (JSON)
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use_case_manage_supplier_negotiation_clob_text.html
Example response body showing the instruction text in HTML format for the CoverPageText attribute.
```json
Request For Quote: Laptop Replacement
Purpose: Find the supplier that offers the highest quality and best value laptops.
InFusion generally uses the following criteria in evaluating and comparing Supplier responses(the criteria are not necessarily listed in order of importance):
- Experience and number of years in business
-Financial stability of the Supplier's organization
- Responsiveness to the requirements of the project as set forth in the [@Document Type@]
-Demonstrated understanding of the goals and objectives of the project and a logical plan for providing product/services within the required time frames
-Agreement to Vision Operations standard contract terms
-Competitive Pricing
```
--------------------------------
### Example Response Body from Update Requisition
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use-case_update_requisitions.html
Example response returned by the update operation. It shows the updated requisition header and line details, including statuses, preparer info, and line-level fields like quantity and price.
```json
{
"RequisitionHeaderId": 300100546219759,
"Requisition": "10505802",
"RequisitioningBUId": 204,
"RequisitioningBU": "Vision Operations",
"PreparerId": 300100542558856,
"Preparer": "Jill Jack",
"PreparerEmail": "jnj@oracle.com",
"Description": "Requisition for new hire training",
"Justification": null,
"DocumentStatus": "Incomplete",
"DocumentStatusCode": "INCOMPLETE",
"SubmissionDate": null,
"ApprovedDate": null,
"FunctionalCurrencyCode": "USD",
"SoldToLegalEntityId": null,
"SoldToLegalEntity": null,
"FundsStatus": null,
"FundsStatusCode": null,
"InterfaceSourceCode": null,
"InterfaceSourceLineId": null,
"EmergencyPONumber": null,
"ModifyingApproverId": null,
"ModifyingApprover": null,
"ModifyingApproverEmail": null,
"OverridingApproverId": null,
"OverridingApprover": null,
"OverridingApproverEmail": null,
"FundsOverrideApproverId": null,
"FundsOverrideApprover": null,
"FundsOverrideApproverEmail": null,
"ApprovedById": null,
"ApprovedByEmail": null,
"BudgetaryControlEnabledFlag": false,
"EmergencyRequisitionFlag": null,
"ExternallyManagedFlag": false,
"InternalTransferFlag": false,
"FundsChkFailWarnFlag": false,
"CreationDate": "2021-08-18T07:36:56+00:00",
"LastUpdateDate": "2021-08-20T04:53:59+00:00",
"CreatedBy": "jnj@oracle.com",
"LastUpdatedBy": "jnj@oracle.com",
"ActiveRequisitionFlag": false,
"SourceApplicationCode": null,
"RejectedById": null,
"RejectedByDisplayName": null,
"RejectedReason": null,
"lines": [
{
"RequisitionHeaderId": 300100546219759,
"RequisitionLineId": 300100546219760,
"LineNumber": 1,
"SmartFormId": null,
"SmartFormName": null,
"LineTypeId": 1,
"LineTypeCode": "Goods",
"RequisitionLineSource": "REST_INTEGRATION",
"CategoryId": 2917,
"CategoryName": "Monitors",
"ItemDescription": "23 Inch High Definition LCD Monitors",
"ItemId": null,
"Item": null,
"ItemRevision": null,
"Quantity": 8,
"SecondaryQuantity": null,
"UnitPrice": 649,
"CurrencyCode": "USD",
"Currency": "US Dollar",
"UOMCode": "Ea",
"UOM": "Each",
"SecondaryUOMCode": null,
"SecondaryUOM": null,
"ConversionRateType": null,
"ConversionRateDate": null,
"ConversionRate": null,
"Price": 649,
"LineStatus": "INCOMPLETE",
"LineStatusDisplayValue": "Incomplete",
"Amount": null,
"CurrencyAmount": null,
"UrgentFlag": null,
"NegotiatedByPreparerFlag": true,
"NegotiationRequiredFlag": null,
"SourceAgreementTypeCode": null,
"SourceAgreementType": null,
"SourceAgreementHeaderId": null,
"SourceAgreement": null,
"SourceAgreementLineId": null,
"SourceAgreementLineNumber": null,
"UNNumberId": null,
"UNNumber": null,
"HazardClassId": null,
"HazardClass": null,
"HazardClassCode": null,
"UNSPSCCode": null,
"ManufacturerName": "Cordel Electronics",
"ManufacturerPartNumber": null,
"BPAPriceUserOverrideFlag": null,
"NewSupplierFlag": null,
"SupplierId": 1717,
"Supplier": "CV_SuppA05",
"SupplierSiteId": 4060,
"SupplierSite": "CVSuppA05Site01",
"SupplierContactId": null,
"SupplierContact": null,
"SupplierContactEmail": null,
"SupplierContactPhone": null,
"SupplierContactFax": null,
"SuggestedSupplier": null,
"SuggestedSupplierSite": null,
"SuggestedSupplierContact": null,
"SuggestedSupplierContactPhone": null,
"SuggestedSupplierContactFax": null,
"SuggestedSupplierContactEmail": null,
"SupplierItemNumber": null,
"RequesterId": 300100542558856,
"Requester": "Jack, Jill",
"RequesterEmail": "jnj@oracle.com"
}
]
}
```
--------------------------------
### GET purchaseRequisitions with query parameters
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use-case_update_requisitions.html
Use this GET request to identify the RequisitionHeaderId, RequisitionLineId, and RequisitionDistributionId by specifying the requisition number and requisitioning BU name as query parameters. The response returns all lines in the requisition, including the line for LCD monitors and its corresponding distribution.
```http
/fscmRestApi/resources/version/purchaseRequisitions?q=Requisition=Requisition Number;RequisitioningBU=Requisitioning BU Name&onlyData=true&expand=lines.distributions
```
--------------------------------
### Example Response: Update CLOB Attribute (JSON)
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use_case_manage_supplier_negotiation_clob_text.html
Example response body after updating the CLOB attribute, showing negotiation details and enclosure links for CLOB attributes.
```json
{
"AuctionHeaderId": 300100195546657,
...
"NegotiationTitle": "New Laptop Order",
"Negotiation": "39180",
...
"Buyer": "Jones,Cody",
"ProcurementBU": "Vision Operations",
"NegotiationStyle": "Standard Negotiation",
"Outcome": "Blanket Purchase Agreement",
...
"links": [
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100195546657/enclosure/CoverPageText",
"name": "CoverPageText",
"kind": "other"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100195546657/enclosure/GeneralIntroductionText",
"name": "GeneralIntroductionText",
"kind": "other"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100195546657/enclosure/TermsInstructionText",
"name": "TermsInstructionText",
"kind": "other"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100195546657/enclosure/RequirementInstructionText",
"name": "RequirementInstructionText",
"kind": "other"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100195546657/enclosure/LinesInstructionText",
"name": "LinesInstructionText",
"kind": "other"
}
]
}
```
--------------------------------
### Get Public Shopping Lists Response
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use_case_manage_public_shopping_list_headers.html
Example JSON response body showing public shopping list headers matching the search criteria.
```json
{
"items": [
{
"PublicShoppingListHeaderId": 300100558177147,
"PublicShoppingList": "Pediatric Emergency Supplies",
"ProcurementBUId": 204,
"ProcurementBU": "Vision Operations",
"PublicShoppingListDescription": "Pediatric emergency supplies list includes: \n- Arm boards: infant, child\n- IV needles: 24 gauge and up\n- Intraosseous needles- infant, pediatric, adult IV administration sets with calibrated chambers and extension tubing and/or infusion devices, etc.",
"PublicShoppingListEndDate": null,
"PublicShoppingListStartDate": "2022-07-19",
"CreatedBy": "CVRQST17",
"CreationDate": "2022-07-19T21:07:26+00:00",
"LastUpdateDate": "2022-07-19T21:12:07.626+00:00",
"LastUpdatedBy": "CVRQST17",
"links": [
{
"rel": "self",
"href": "https://server/fscmRestApi/resources/version/publicShoppingLists/300100558177147",
"name": "publicShoppingLists",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://server/fscmRestApi/resources/version/publicShoppingLists/300100558177147",
"name": "publicShoppingLists",
"kind": "item"
}
]
},
{
"PublicShoppingListHeaderId": 300100558177157,
"PublicShoppingList": "Pediatric Office Supplies",
"ProcurementBUId": 204,
"ProcurementBU": "Vision Operations",
"PublicShoppingListDescription": "General office supplies for the pediatric department.",
"PublicShoppingListEndDate": null,
"PublicShoppingListStartDate": "2022-07-19",
"CreatedBy": "CVRQST17",
"CreationDate": "2022-07-19T21:18:01.602+00:00"
```
--------------------------------
### Create a Surrogate Response Response
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use-case_create_a_negotiation_response.html
Example response body returning the ID of the created surrogate response.
```json
{
"Response": "188759"
}
```
--------------------------------
### Create a Surrogate Response Request
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use-case_create_a_negotiation_response.html
Example request body to create a surrogate response on behalf of a supplier.
```json
{ "AuctionHeaderId":"300100546799787",
"Negotiation": "40124",
"ProcurementBU":"Vision Scotland",
"ProcurementBUId":"15567",
"Buyer": "Kinley, Adam",
"BuyerId": "66152",
"Supplier": "Techno Enterprises",
"SupplierId":"12737",
"SupplierContact":"Mckinsenly, Peter",
"SupplierContactId":"292354",
"SupplierSite":"Edinburg",
"SupplierSiteId": "5058"
}
```
--------------------------------
### Create a Question Response Response Body
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use_case_manage_supplier_qualification_question_responses.html
Example JSON response received after submitting a question response, showing the status as Processing.
```json
{
"Question": "Annual Revenue",
"Supplier": "Chile Foods",
"ResponseDate": "2019-05-14T18:20:59.164+00:00",
"ResponseRepositoryId": 300100177300850,
"ResponseStatus": "Processing",
"FirstSubmissionDate": "2019-05-14T18:20:59.164+00:00",
"ResponseArchiveDate": null,
"AcceptanceDate": "2019-05-14T18:20:59.165+00:00",
"AcceptedBy": "Smith,Cody",
"ResponderType": "Supplier",
"values": [{
"ResponseRepositoryValueId": 300100177300851,
"ResponseRepositoryId": 300100177300850,
"ResponseValueText": "12M",
...
}]
}
```
--------------------------------
### Submit a Draft Response Response
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use-case_create_a_negotiation_response.html
Example response body confirming the submission status change from Draft to Active.
```json
{
"result": {
"Response": "188755",
"ResponseStatus": "Active",
"Negotiation": "40124",
"NegotiationTitle": "Laptop Procurement FY23",
"ProcurementBU": "Vision Operations",
"Message": "Response submitted successfully"
}
}
```
--------------------------------
### Public Shopping List request body
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/use_case_manage_public_shopping_list_headers.html
Example JSON request body for creating a new public shopping list header.
```json
{
"ProcurementBU": "Vision Operations",
"PublicShoppingList": "Pediatric Equipment",
"PublicShoppingListDescription": "Pediatric equipment to care for small-sized patients including pediatric scales, tabletop scales, pediatric stretchers, exam room cabinets, pediatric exam tables.",
"PublicShoppingListEndDate": null,
"PublicShoppingListStartDate": "2022-08-01"
}
```
--------------------------------
### Initialize Flutter app with flutter create
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/api-external-purchase-prices-bu-mappings.html
Use the `flutter create` command to initialize a new Flutter app named `supabase_quickstart`.
```bash
flutter create supabase_quickstart
```
--------------------------------
### Example response body for GET publicShoppingLists
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-publicshoppinglists-get.html
Example response body for a GET request on publicShoppingLists. Shows one item with fields like PublicShoppingListHeaderId, ProcurementBU, and links.
```json
{
"items": [
{
"PublicShoppingListHeaderId": 300100559285633,
"PublicShoppingList": "Pediatric Services",
"ProcurementBUId": 458,
"ProcurementBU": "Vision Services",
"PublicShoppingListDescription": "Speech-Language Therapy, Occupational Therapy, Physical Therapy, Child Development Services.\n",
"PublicShoppingListEndDate": null,
"PublicShoppingListStartDate": "2022-07-20",
"CreatedBy": "CVRQST17",
"CreationDate": "2022-07-20T21:00:43+00:00",
"LastUpdateDate": "2022-07-20T21:01:52.113+00:00",
"LastUpdatedBy": "CVRQST17",
"links": [
{
"rel": "self",
"href": "https://server/fscmRestApi/resources/version/publicShoppingLists/300100559285633",
"name": "publicShoppingLists",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://server/fscmRestApi/resources/version/publicShoppingLists/300100559285633",
"name": "publicShoppingLists",
"kind": "item"
}
]
}
],
"count": 1,
"hasMore": false,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://server/fscmRestApi/resources/version/publicShoppingLists",
"name": "publicShoppingLists",
"kind": "collection"
}
]
}
```
--------------------------------
### Example response body for get smart form assignment
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-contentzones-contentzonesuniqid-child-smartformassignments-smartformassignmentid-get.html
Example JSON response body returned by the GET request, showing the smart form assignment details.
```json
{
"SmartFormAssignmentId": 300100585271661,
"ContentZoneId": 300100585274636,
"SmartFormId": 300100585218689,
"SmartForm": "Accessories and Peripherals",
"CreationDate": "2023-11-01T17:07:17.095+00:00",
"CreatedBy": "CVBUYER01",
"LastUpdatedBy": "CVBUYER01",
"LastUpdatedDate": "2023-11-01T17:07:17.095+00:00",
"links": [
. . .
]
}
```
--------------------------------
### Setup cgroup freezer
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/api-draft-purchase-agreements-purchase-agreement-lines-item-attributes.html
Commands to create and mount the freezer cgroup, create a sub-cgroup, and add a process to it.
```shell
# mkdir /sys/fs/cgroup/freezer
# mount -t cgroup -ofreezer freezer /sys/fs/cgroup/freezer
# mkdir /sys/fs/cgroup/freezer/0
# echo $some_pid > /sys/fs/cgroup/freezer/0/tasks
```
--------------------------------
### Example Response Body for Get All Abstracts
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-suppliernegotiations-suppliernegotiationsuniqid-child-abstracts-get.html
Example JSON response body returned by the GET request. Shows an item with abstract details such as 'AbstractStatus', 'PostingMethod', and links to related resources.
```json
{
"items": [
{
"AwardNoticePublishDate": null,
"AwardNoticePublishFlag": false,
"PostingDate": "2021-03-15T17:22:10+00:00",
"IncludeNegotiationPDFFlag": false,
"IncludeNegotiationAttachmentsToSupplierFlag": true,
"ResponseTabulationPublishDate": null,
"ResponseTabulationPublishFlag": false,
"AbstractStatus": "Posted",
"PostingMethod": "Manual",
"AwardNoticeText": null,
"CreationDate": "2021-03-15T17:07:33.181+00:00",
"CreatedBy": "BUYER01",
"LastUpdateDate": "2021-03-15T17:22:10.058+00:00",
"LastUpdatedBy": "BUYER01",
"PostedBy": "Furey,Clare",
"PostAutomaticallyFlag": false,
"AutomaticPostingEvent": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100541606569/child/abstracts/300100541606569",
"name": "abstracts",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100541606569/child/abstracts/300100541606569",
"name": "abstracts",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100541606569",
"name": "supplierNegotiations",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100541606569/child/abstracts/300100541606569/child/DFF",
"name": "DFF",
"kind": "collection"
}
]
}
],
"count": 1,
"hasMore": false,
"limit": 10,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100541606569/child/abstracts",
"name": "abstracts",
"kind": "collection"
}
]
}
```
--------------------------------
### Example response body for get compliance checklist
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-compliancechecklists-compliancechecklistsuniqid-get.html
Example JSON response body returned when getting a compliance checklist, including fields like ChecklistInitiativeId, Checklist, Status, and links.
```json
{
"ChecklistInitiativeId": 300100583348975,
"Checklist": "Checklist-99",
"Title": "Direct Materials - Oct 2023",
"StatusCode": "ORA_COMPLETED",
"Status": "Completed",
"ProcurementBUId": 204,
"ProcurementBU": "Vision Operations",
"ChecklistOwnerId": 100010026863783,
"ChecklistOwner": "Furey,Clare",
"ChecklistTemplateId": 300100583350637,
"ChecklistTemplate": "Direct Materials",
"ChecklistTemplateRevision": 1,
"ReopenDate": "2023-10-17T01:04:31.201+00:00",
"ReopenedById": 100010026863783,
"ReopenedBy": "Furey,Clare",
"ReopenReason": "test",
"CompletionDate": "2023-10-17T01:07:25.808+00:00",
"CompletedById": 100010026863783,
"CompletedBy": "Furey,Clare",
"CancellationDate": null,
"CanceledById": null,
"CanceledBy": null,
"CanceledReason": null,
"CreationDate": "2023-10-16T22:44:58+00:00",
"POHeaderId": null,
"PONumber": null,
"POStatus": null,
"PurchasingDocumentType": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/complianceChecklists/300100583348975",
"name": "complianceChecklists",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000878"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/complianceChecklists/300100583348975",
"name": "complianceChecklists",
"kind": "item"
}
]
}
```
--------------------------------
### GET /complianceChecklists/complianceChecklistsUniqID
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-compliancechecklists-compliancechecklistsuniqid-get.html
This example describes how to get one compliance checklist using a GET request to the complianceChecklists resource with a unique identifier.
```APIDOC
## GET /complianceChecklists/complianceChecklistsUniqID
### Description
Retrieves a single compliance checklist resource by its unique identifier.
### Method
GET
### Endpoint
`https://servername/fscmRestApi/resources/version/complianceChecklists/complianceChecklistsUniqID`
### Parameters
#### Path Parameters
- **complianceChecklistsUniqID** (string) - Required - The unique identifier of the compliance checklist.
### Request Example
```
curl -u username:password "https://servername/fscmRestApi/resources/version/complianceChecklists/complianceChecklistsUniqID"
```
### Response
#### Success Response (200)
- **ChecklistInitiativeId** (integer) - The unique identifier of the checklist initiative.
- **Checklist** (string) - The checklist name.
- **Title** (string) - The title of the checklist.
- **StatusCode** (string) - The status code of the checklist.
- **Status** (string) - The status of the checklist.
- **ProcurementBUId** (integer) - The identifier of the procurement business unit.
- **ProcurementBU** (string) - The name of the procurement business unit.
- **ChecklistOwnerId** (integer) - The identifier of the checklist owner.
- **ChecklistOwner** (string) - The name of the checklist owner.
- **ChecklistTemplateId** (integer) - The identifier of the checklist template.
- **ChecklistTemplate** (string) - The name of the checklist template.
- **ChecklistTemplateRevision** (integer) - The revision number of the checklist template.
- **ReopenDate** (string) - The date the checklist was reopened.
- **ReopenedById** (integer) - The identifier of the user who reopened the checklist.
- **ReopenedBy** (string) - The name of the user who reopened the checklist.
- **ReopenReason** (string) - The reason for reopening the checklist.
- **CompletionDate** (string) - The date the checklist was completed.
- **CompletedById** (integer) - The identifier of the user who completed the checklist.
- **CompletedBy** (string) - The name of the user who completed the checklist.
- **CancellationDate** (string) - The date the checklist was cancelled.
- **CanceledById** (integer) - The identifier of the user who cancelled the checklist.
- **CanceledBy** (string) - The name of the user who cancelled the checklist.
- **CanceledReason** (string) - The reason for cancelling the checklist.
- **CreationDate** (string) - The date the checklist was created.
- **POHeaderId** (integer) - The identifier of the purchase order header.
- **PONumber** (string) - The purchase order number.
- **POStatus** (string) - The status of the purchase order.
- **PurchasingDocumentType** (string) - The type of purchasing document.
- **links** (array) - An array of link objects.
#### Response Example
```json
{
"ChecklistInitiativeId": 300100583348975,
"Checklist": "Checklist-99",
"Title": "Direct Materials - Oct 2023",
"StatusCode": "ORA_COMPLETED",
"Status": "Completed",
"ProcurementBUId": 204,
"ProcurementBU": "Vision Operations",
"ChecklistOwnerId": 100010026863783,
"ChecklistOwner": "Furey,Clare",
"ChecklistTemplateId": 300100583350637,
"ChecklistTemplate": "Direct Materials",
"ChecklistTemplateRevision": 1,
"ReopenDate": "2023-10-17T01:04:31.201+00:00",
"ReopenedById": 100010026863783,
"ReopenedBy": "Furey,Clare",
"ReopenReason": "test",
"CompletionDate": "2023-10-17T01:07:25.808+00:00",
"CompletedById": 100010026863783,
"CompletedBy": "Furey,Clare",
"CancellationDate": null,
"CanceledById": null,
"CanceledBy": null,
"CanceledReason": null,
"CreationDate": "2023-10-16T22:44:58+00:00",
"POHeaderId": null,
"PONumber": null,
"POStatus": null,
"PurchasingDocumentType": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/complianceChecklists/300100583348975",
"name": "complianceChecklists",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000878"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/complianceChecklists/300100583348975",
"name": "complianceChecklists",
"kind": "item"
}
]
}
```
```
--------------------------------
### POST /sourcingPrograms/{sourcingProgramId}/launch
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/api-sourcing-programs.html
Launches a specific sourcing program, initiating its execution.
```APIDOC
## POST /sourcingPrograms/{sourcingProgramId}/launch
### Description
Launches one sourcing program.
### Method
POST
### Endpoint
/sourcingPrograms/{sourcingProgramId}/launch
### Parameters
#### Path Parameters
- **sourcingProgramId** (string) - Required - The unique identifier of the sourcing program to launch.
### Response
#### Success Response (200)
Returns the launch status or result.
```
--------------------------------
### POST /fscmRestApi/resources/11.13.18.05/supplierInitiatives/{supplierInitiativesUniqID}/action/launch
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/api-supplier-initiatives.html
Launches a supplier initiative. This action starts the initiative for supplier participation.
```APIDOC
## POST /fscmRestApi/resources/11.13.18.05/supplierInitiatives/{supplierInitiativesUniqID}/action/launch
### Description
Launches a supplier initiative.
### Method
POST
### Endpoint
/fscmRestApi/resources/11.13.18.05/supplierInitiatives/{supplierInitiativesUniqID}/action/launch
### Parameters
#### Path Parameters
- **supplierInitiativesUniqID** (string) - Required - The unique identifier of the initiative.
#### Request Body
- No request body parameters are documented.
### Response
#### Success Response (200)
- No response fields are documented.
```
--------------------------------
### GET /fscmRestApi/resources/11.13.18.05/purchaseAgreements/{purchaseAgreementsUniqID}/child/lines
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-purchaseagreements-purchaseagreementsuniqid-get.html
Details of the goods or services to be purchased from the supplier. The line doesn't contain delivery dates or individual delivery quantities or amounts. For example, an agreement line can be service-based for installing a television or a goods item to negotiate the price for 50 laptops.
```APIDOC
## GET /fscmRestApi/resources/11.13.18.05/purchaseAgreements/{purchaseAgreementsUniqID}/child/lines
### Description
Details of the goods or services to be purchased from the supplier. The line doesn't contain delivery dates or individual delivery quantities or amounts. For example, an agreement line can be service-based for installing a television or a goods item to negotiate the price for 50 laptops.
### Method
GET
### Endpoint
/fscmRestApi/resources/11.13.18.05/purchaseAgreements/{purchaseAgreementsUniqID}/child/lines
### Parameters
#### Path Parameters
- **purchaseAgreementsUniqID** (string) - Required - The unique identifier of the purchase agreement.
```
--------------------------------
### GET documentVersionActions response example
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/op-purchasingdocumenthistorydetails-purchasingdocumenthistorydetailsuniqid-child-documentversionactions-get.html
Example JSON response from the GET request to the documentVersionActions child collection. Shows the structure with items, links, and pagination fields such as count, hasMore, limit, and offset.
```json
{
"items": [
{
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/purchasingDocumentHistoryDetails/00050000000EACED00057708000110F09E1DA7570000000C4348414E4745204F524445520000000EACED00057708000000000000000900000002504F000000085354414E44415244",
"name": "purchasingDocumentHistoryDetails",
"kind": "item"
}
]
}
],
"count": 3,
"hasMore": false,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/purchasingDocumentHistoryDetails",
"name": "purchasingDocumentHistoryDetails",
"kind": "collection"
}
]
}
```
--------------------------------
### Configure with fuzzing targets enabled
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/api-draft-purchase-agreements.html
Run configure with the required preprocessor flag and the --enable-fuzztargets-local option for local testing.
```shell
CPPFLAGS="-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" ./configure --enable-fuzztargets-local
```
--------------------------------
### Initialize Supabase client in main function
Source: https://docs.oracle.com/en/cloud/saas/procurement/26c/fapra/api-external-purchase-prices-bu-mappings.html
Initialize the Supabase client in the `main` function with the API credentials. The `showSnackBar` extension method is defined for showing snack bars in the app.
```dart
import 'package:flutter/material.dart';
import 'package:supabase_flutter/supabase_flutter.dart';
Future main() async {
await Supabase.initialize(
url: 'YOUR_SUPABASE_URL',
publishableKey: 'YOUR_SUPABASE_PUBLISHABLE_KEY',
);
runApp(const MyApp());
}
final supabase = Supabase.instance.client;
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(title: 'Supabase Flutter');
}
}
extension ContextExtension on BuildContext {
void showSnackBar(String message, {bool isError = false}) {
ScaffoldMessenger.of(this).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: isError
? Theme.of(this).colorScheme.error
: Theme.of(this).snackBarTheme.backgroundColor,
),
);
}
}
```