Tuesday, 5 April 2022

Rest API to create Supplier in Oracle Fusion

 Rest API:  https://HOST/fscmRestApi/resources/11.13.18.05/suppliers

Method: POST

Request Payload:

{
  "Supplier" : "Test Supplier",
  "TaxOrganizationType" : "Corporation",
  "SupplierType" : "Supplier",
  "BusinessRelationship" : "Spend Authorized",
  "DUNSNumber" : "221132556",
  "OneTimeSupplierFlag" : false,
  "TaxpayerCountry" : "United States",
  "TaxpayerId" : "98-01234567"
}

Response :

{
    "SupplierId"300000127675805,
    "SupplierPartyId"300000127675806,
    "Supplier""Test Supplier",
    "SupplierNumber""20029",
    "AlternateName"null,
    "TaxOrganizationTypeCode""CORPORATION",
    "TaxOrganizationType""Corporation",
    "SupplierTypeCode""SUPPLIER_GH",
    "SupplierType""Supplier",
    "InactiveDate"null,
    "Status""ACTIVE",
    "BusinessRelationshipCode""SPEND_AUTHORIZED",
    "BusinessRelationship""Spend Authorized",
    "ParentSupplierId"null,
    "ParentSupplier"null,
    "ParentSupplierNumber"null,
    "CreationDate""2022-04-05T17:49:39.001+00:00",
    "CreatedBy""pinky.mukherjee@pwc.com",
    "LastUpdateDate""2022-04-05T17:49:46.911+00:00",
    "LastUpdatedBy""pinky.mukherjee@pwc.com",
    "CreationSourceCode""WEB_SERVICE",
    "CreationSource""Web Service",
    "DataFoxScore"null,
    "DataFoxScoringCriteria"null,
    "Alias"null,
    "DUNSNumber""221132556",
    "OneTimeSupplierFlag"false,
    "RegistryId""SUP_540989",
    "CustomerNumber"null,
    "StandardIndustryClass"null,
    "IndustryCategory"null,
    "IndustrySubcategory"null,
    "NationalInsuranceNumber"null,
    "NationalInsuranceNumberExistsFlag"false,
    "CorporateWebsite"null,
    "YearEstablished"null,
    "MissionStatement"null,
    "YearIncorporated"null,
    "ChiefExecutiveTitle"null,
    "ChiefExecutiveName"null,
    "PrincipalTitle"null,
    "PrincipalName"null,
    "FiscalYearEndMonthCode"null,
    "FiscalYearEndMonth"null,
    "CurrentFiscalYearPotentialRevenue"null,
    "PreferredFunctionalCurrencyCode"null,
    "PreferredFunctionalCurrency"null,
    "TaxRegistrationCountryCode"null,
    "TaxRegistrationCountry"null,
    "TaxRegistrationNumber"null,
    "TaxpayerCountryCode""US",
    "TaxpayerCountry""United States",
    "TaxpayerId""98-01234567",
    "TaxpayerIdExistsFlag"true,
    "FederalReportableFlag"false,
    "FederalIncomeTaxTypeCode"null,
    "FederalIncomeTaxType"null,
    "StateReportableFlag"false,
    "TaxReportingName"null,
    "NameControl"null,
    "VerificationDate"null,
    "UseWithholdingTaxFlag"false,
    "WithholdingTaxGroupId"null,
    "WithholdingTaxGroup"null,
    "BusinessClassificationNotApplicableFlag"false,
    "DataFoxId"null,
    "DataFoxCompanyName"null,
    "DataFoxLegalName"null,
    "DataFoxCompanyPrimaryURL"null,
    "DataFoxNAICSCode"null,
    "DataFoxCountry"null,
    "DataFoxEIN"null,
    "DataFoxLastSyncDate"null,
    "OBNEnabledFlag"null,
    "links": [
        {
            "rel""self",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805",
            "name""suppliers",
            "kind""item",
            "properties": {
                "changeIndicator""ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000007770400000007737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000017371007E0002000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C7371007E00020000000171007E00077371007E00020000000171007E000778"
            }
        },
        {
            "rel""canonical",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805",
            "name""suppliers",
            "kind""item"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/CountryLookup",
            "name""CountryLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/FiscalYearEndMonthLookup",
            "name""FiscalYearEndMonthLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/ParentSupplierLookup",
            "name""ParentSupplierLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/CurrencyLookup",
            "name""CurrencyLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/BusinessRelationshipLookup",
            "name""BusinessRelationshipLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/TaxOrganizationTypeLookup",
            "name""TaxOrganizationTypeLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/SupplierTypeLookup",
            "name""SupplierTypeLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/FederalIncomeTaxTypeLookup",
            "name""FederalIncomeTaxTypeLookup",
            "kind""collection"
        },
        {
            "rel""lov",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/lov/WithholdingTaxGroupLookup",
            "name""WithholdingTaxGroupLookup",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/DFF",
            "name""DFF",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/addresses",
            "name""addresses",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/attachments",
            "name""attachments",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/businessClassifications",
            "name""businessClassifications",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/contacts",
            "name""contacts",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/globalDFF",
            "name""globalDFF",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/productsAndServices",
            "name""productsAndServices",
            "kind""collection"
        },
        {
            "rel""child",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/child/sites",
            "name""sites",
            "kind""collection"
        },
        {
            "rel""action",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/action/scores",
            "name""scores",
            "kind""other"
        },
        {
            "rel""action",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/action/signals",
            "name""signals",
            "kind""other"
        },
        {
            "rel""action",
            "href""https://Host:443/fscmRestApi/resources/11.13.18.05/suppliers/300000127675805/action/submitSpendAuthorizationRequest",
            "name""submitSpendAuthorizationRequest",
            "kind""other"
        }
    ]
}

No comments:

Post a Comment