B2B Location Codes
b2bLocationCodes Based on 26C
Create, change, delete and look up B2B Location Codes. Actions include importb2b location codes.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)DELETE1 action
- Record key
B2BLocationCode- Required on create
- none marked
- At a glance
- 11 fields2 finders0 children
Try it
Only attributes Oracle marks as searchable are offered.
GET /fscmRestApi/resources/11.13.18.05/b2bLocationCodes?fields=Address,B2BLocationCode,BillToFlag,CrossReferenceLocationValueId,CustomerAccountSiteUseId&limit=25&onlyData=true
{
"items": [
{
"Address": "<string, max 255>",
"B2BLocationCode": "<string, max 100>",
"BillToFlag": false,
"CrossReferenceLocationValueId": 0,
"CustomerAccountSiteUseId": "<string, max 100>"
}
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0
}Shapes and placeholders, not real data. Replace https://<your-pod> and the login with your own: this site never sees them. Based on Oracle's 26C REST specification.
Fields 11
| Attribute | Type | Use |
|---|---|---|
Address | text · max 255 | Optional on createSearchable |
B2BLocationCode | text · max 100 | Optional on createUpdatableSearchable |
BillToFlag | yes/no | Optional on createSearchable |
CrossReferenceLocationValueId | number | Read-onlySearchable |
CustomerAccountSiteUseId | text · max 100 | Optional on createSearchable |
CustomerId | text · max 256 | Optional on createSearchable |
CustomerName | text | Optional on createSearchable |
CustomerNumber | text · max 256 | Optional on createSearchable |
PartySiteId | text · max 100 | Optional on createSearchable |
PartySiteNumber | text · max 30 | Optional on createSearchable |
ShipToFlag | yes/no | Optional on createSearchable |
Names, types, labels and flags from Oracle's REST specification (26C). Flexfield and custom attributes vary by pod: check /describe for yours.
Finders 2
Predefined searches: ?finder=Name;variable=value,variable2=value2. Pick one in Try it to build the call.
findByB2BLocationCode·B2BLocationCodehcmSearch·bindBillToFlagbindInputbindShipToFlag
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Actions 1
POST …/action/importb2bLocationCodes·file
Actions use Content-Type: application/vnd.oracle.adf.action+json. A path with a {key} runs on one record.
Use in AI Agent Studio
- Point a Business Object or REST tool at
/fscmRestApi/resources/11.13.18.05/b2bLocationCodesand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Prefer a finder such as
findByB2BLocationCodefor the agent's main search: its variables become clean tool parameters. - Narrow with
q=on searchable fields and a smalllimit; for a count usetotalResults=true&limit=1. - Call once and pass the result on to later steps rather than calling the same endpoint again.
- This resource can change data. Put a human approval step before any create, update, delete or action call.
More in For Builders.
Pitfalls
- Attribute names are case-sensitive in
q,fieldsand bodies:Address, notaddress. - 1 fields are read-only: sending them in POST or PATCH fails or is ignored. The builder leaves them out.
- A list returns 25 rows unless you set
limit; readhasMoreand moveoffsetto page through. - Text fields have maximum lengths (shown in the field table). Longer values are rejected.