Amazon B2B Data Interchange · Example Payload

Generate Mapping Example

EDIB2BData InterchangeSupply ChainHealthcareFinancial-ServicesAmazon Web Services

Generate Mapping Example is an example object payload from Amazon B2B Data Interchange, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://b2bi.us-east-1.amazonaws.com/mappings/generate",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "AWS4-HMAC-SHA256 Credential=..."
    },
    "body": {
      "inputFileContent": "{\"purchaseOrder\":{\"orderNumber\":\"PO-12345\",\"vendor\":\"ACME\",\"items\":[{\"sku\":\"ABC-001\",\"quantity\":100,\"price\":9.99}]}}",
      "outputFileContent": "ISA*00*          *00*          *ZZ*SENDERID       *ZZ*RECEIVERID     *260419*1200*U*00401*000000001*0*P*>~GS*PO*SENDERID*RECEIVERID*20260419*1200*1*X*004010~ST*850*0001~BEG*00*SA*PO-12345**20260419~PO1*1*100*EA*9.99**VP*ABC-001~CTT*1~SE*5*0001~GE*1*1~IEA*1*000000001~",
      "mappingType": "JSONATA"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "mappingTemplate": "($po := $.purchaseOrder; 'ISA*00*          *00*          *ZZ*' & $po.vendor & '*ZZ*RECEIVER*' & $now() & '*U*00401*000000001*0*P*>~GS*PO*' & $po.vendor & '*RECEIVER*' & $now() & '*1*X*004010~ST*850*0001~BEG*00*SA*' & $po.orderNumber & '**' & $now() & '~' & $join($po.items.('PO1*' & $string($index+1) & '*' & $string(quantity) & '*EA*' & $string(price) & '**VP*' & sku & '~'), '') & 'CTT*' & $string($count($po.items)) & '~SE*' & $string(5+$count($po.items)) & '*0001~GE*1*1~IEA*1*000000001~')",
      "mappingAccuracy": 0.82
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/generate-mapping-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.