Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

thegrommet/rest-shipwire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest-shipwire

PHP Rest Server for Shipwire Integration

This provides a simple PHP-based REST service with dummy responses to aid in Shipwire integration development before the actual APIs are ready.

Apache Virtual Host Setup

<VirtualHost *:80>
    DocumentRoot "/webroot/rest-shipwire"
    ServerName rest.site
    ServerAlias www.rest.site
</VirtualHost>

Supported Resources

  • /vendors
  • /vendors/E{any_int}/packing-lists
  • /vendors/E{any_int}/shipping-labels
  • /warehouses
  • /rate
  • /orders
  • /orders/E{any_int}/packing-lists
  • /shipments
  • /shipments/E{any_int}/packing-list
  • /shipments/E{any_int}/shipping-label
  • /shipments/E{any_int}/tracking-numbers
  • /products
  • /products/E{any_int}/stock
  • /products/E{any_int}/stock-adjustments

Vendor GET example

http://www.rest.site/vendors/E1

{
    "id": 10,
	"externalId": 1,
    "name": "Test Vendor 1",
    "status": "active",
    "description": "Vendor 1 description",
    "contactName": "Vendor 1 name",
    "contactEmail": "[email protected]",
    "contactPhone": "123-456-7890",
    "contactFax": "234-567-8901",
    "address1": "123 Main St",
    "address2": "Apt. 1",
    "city": "Boulder",
    "region": "CO",
    "postalCode": "80304",
    "country": "US"
}

PHP Rest server from https://github.com/marcj/php-rest-service

About

PHP Rest Server for Shipwire Integration Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages