MyAtOnce REST Web Service

MyAtOnce REST Web Service supports HTTP requests in XML or JSON format

Request Headers:

  • Customer-Id: {customer-id} (Provided by AtOnce)
  • Customer-Token: {customer-token} (Provided by AtOnce)
  • Content-Type: text/xml OR application/json (will default to text/xml if not set)
  • Additional Product Inventory Header:

  • Mode: UPC OR SKU OR STYLEID (will default to UPC if not set)
  • Available Functions:

    URL: https://myatonce.com/data/services/api/products/inventory

    HTTP Request Method: POST

    Required Fields: sku,quantity.

    Sample JSON request

    Sample XML request



    URL: https://myatonce.com/data/services/api/orders/status

    HTTP Request Method: POST

    Required Fields: ref_num is required, and either an order status value or tracking number must be provided. All other fields are optional.

    Sample JSON request

    Sample XML request



    URL: https://myatonce.com/data/services/api/orders/status

    HTTP Request Method: POST

    Required Fields:

  • SalesOrder field must be specified or it will be treated as an order update
  • AccountNum field must match with an account number stored on MAO OR if field is empty will try to account using name field
  • Collection AND Delivery fields must be specified to obtain particular product data
  • OrderStatus MUST be a VALID status
  • Notes:

  • Mode: UPC OR SKU OR STYLEID (will default to SKU if not set)
  • ShipDate will default to -8 hours (GMT time) if left blank or field not defined
  • Canceldate will default to +30 days (GMT time) if left blank or field not defined
  • OrderDate will default to -8 hours (GMT time) if left blank or field not defined
  • If BillingID and Account number matches, will use default billing address
  • If BillingID wasn't defined, Street, City and Zip will be used to look up billing address
  • If ShippingID and Account number matches, will use default shipping address
  • If ShippingID wasn't defined, Street, City and Zip will be used to look up shipping address or will otherwise use the default shipping address
  • Sample JSON request

    Sample XML request


    URL: https://myatonce.com/data/services/api/order/list

    HTTP Request Method: GET

    Sample JSON request