Skip to main content

Update Location Code

PUT 

/api/spscommerce/:integrationInstance/location-codes/:locationCode

Change a location directory entry. Waiting purchase orders are retried as on create.

Required scope: integrations:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token and the integrations.update permission.

Body fields:

  • trading_partner_id (string, required, max 64): the trading partner's SPS Commerce id (the purchase order sender)
  • location_code (string, required, max 80): the store / DC code the partner sends (ship-to AddressLocationNumber or a line's store number); unique per trading partner on the connection
  • distribution_center_code (string, optional, max 80): the DC a store rolls up to. With it, name and the address fields are optional, and an order for a retailer set to one order per DC ships to that DC. Leave it out for a DC or a direct-to-store location
  • name (string, required, max 255)
  • address1 (string, required, max 255)
  • address2 (string, optional, max 255)
  • city (string, required, max 100)
  • state (string, max 100): required when country is US / USA
  • zip (string, required, max 30)
  • country (string, optional, 2–3 letters, default US)

Request​

Responses​

OK

Response Headers
    Content-Type