B2B Account Numbers
b2bAccountNumbers Based on 26C
Create, change, delete and look up B2B Account Numbers, with ship to assignments. Actions include exportb2b account numbers and importb2b account numbers.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)DELETE2 actions
- Record key
AccountNumberId- Required on create
AccountNumberVendorId- At a glance
- 8 fields2 finders1 children
Try it
Only attributes Oracle marks as searchable are offered.
GET /fscmRestApi/resources/11.13.18.05/b2bAccountNumbers?fields=AccountNumber,AccountNumberId,ProcurementBU,SiteName,SupplierName&limit=25&onlyData=true
{
"items": [
{
"AccountNumber": "<string, max 256>",
"AccountNumberId": 0,
"ProcurementBU": "<string, max 255>",
"SiteName": "<string, max 255>",
"SupplierName": "<string, max 255>"
}
],
"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 8
| Attribute | Type | Use |
|---|---|---|
AccountNumber | text · max 256 | Required on createSearchable |
AccountNumberId | number | Optional on createSearchable |
ProcurementBU | text · max 255 | Optional on createUpdatableSearchable |
SiteName | text · max 255 | Optional on createUpdatableSearchable |
SupplierName | text · max 255 | Optional on createUpdatableSearchable |
SupplierNumber | text · max 255 | Optional on createUpdatableSearchable |
VendorId | number | Required on createSearchable |
VendorSiteId | number | 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.
getByAccountNumberId·AccountNumberIdhcmSearch·bindInput
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Children 1
Child resources sit under one record: /fscmRestApi/resources/11.13.18.05/b2bAccountNumbers/{AccountNumberId}/child/<name>. Add them to a GET with expand.
shipToAssignmentsGET · POST · PATCH · DELETE Ship-To Assignments · 6 fieldsAccountNumberIdAddressSetShipToAssignmentIdShipToLocationCodeShipToLocationId
Actions 2
POST …/action/exportb2bAccountNumbersPOST …/action/importb2bAccountNumbers·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/b2bAccountNumbersand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Prefer a finder such as
getByAccountNumberIdfor 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:AccountNumber, notaccountnumber. - 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.