{"_id":"54cc2149380ecd0d00ca18ba","version":{"_id":"54cc2148380ecd0d00ca18aa","__v":2,"forked_from":"5436a1e1d0ffee0e00f18f8f","project":"5436a1e1d0ffee0e00f18f8c","createdAt":"2015-01-31T00:26:48.753Z","releaseDate":"2015-01-31T00:26:48.753Z","categories":["54cc2149380ecd0d00ca18ab","54cc2149380ecd0d00ca18ac","54cc2149380ecd0d00ca18ad","54cc2149380ecd0d00ca18ae","54cc2149380ecd0d00ca18af","54cc2149380ecd0d00ca18b0","54cc2149380ecd0d00ca18b1","54cc2149380ecd0d00ca18b2","54cc2149380ecd0d00ca18b3","552f29ca633a5b0d00e99d09"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"__v":2,"project":"5436a1e1d0ffee0e00f18f8c","user":"5436a1afb7cf0e1c0020d9ca","category":{"_id":"54cc2149380ecd0d00ca18ad","version":"54cc2148380ecd0d00ca18aa","project":"5436a1e1d0ffee0e00f18f8c","pages":["54cc2149380ecd0d00ca18ba","54cc2149380ecd0d00ca18bb"],"__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-09T15:31:28.359Z","from_sync":false,"order":2,"slug":"partner-api","title":"Partner API"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-23T16:20:49.605Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[]},"method":"post","results":{"codes":[{"name":"","code":"{\n   \"account\":{\n      \"id\":4586,\n      \"company_name\":\"Emard, Becker and Morissette\",\n      \"email\":\"heberr:::at:::kuhlman.net\",\n      \"phone_number\":\"7871287490\",\n      \"first_name\":\"Bonita\",\n      \"last_name\":\"Yundt\"\n   }\n}","language":"json","status":200},{"code":"{\n   \"errors\":{\n      \"email\":[\n         \"is not valid\",\n         \"can't be blank\"\n      ],\n      \"company_name\":[\n         \"can't be blank\"\n      ],\n      \"phone_number\":[\n         \"can't be blank\"\n      ],\n      \"first_name\":[\n         \"can't be blank\"\n      ],\n      \"last_name\":[\n         \"can't be blank\"\n      ],\n      \"address\":[\n         \"can't be blank\"\n      ],\n      \"city\":[\n         \"can't be blank\"\n      ],\n      \"state\":[\n         \"can't be blank\"\n      ],\n      \"postal_code\":[\n         \"can't be blank\"\n      ],\n      \"country\":[\n         \"can't be blank\"\n      ],\n      \"password\":[\n         \"can't be blank\"\n      ],\n      \"subscription_plan_code\":[\n         \"can't be blank\",\n         \"is not included in the list\"\n      ]\n   }\n}","language":"json","status":400,"name":""}]},"auth":"never","params":[],"url":"/partners/api/accounts"},"isReference":false,"order":0,"body":"A partner may create ShippingEasy accounts on behalf of their customers. The first time a customer logs into an account created via the partner API they will be prompted to provide billing information. Their subscription plan will be preset to whatever plan was sent in the account creation payload.\n\nNote that the API key and API secret values that are used for partner requests are not the same as the API key and API secret used for accessing a ShippingEasy customer account - see [API Credentials](https://shippingeasy.readme.io/docs/api-credentials) for more.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example payload\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"account\\\":{\\n      \\\"first_name\\\":\\\"Bonita\\\",\\n      \\\"last_name\\\":\\\"Yundt\\\",\\n      \\\"company_name\\\":\\\"Emard, Becker and Morissette\\\",\\n      \\\"email\\\":\\\"heberr@kuhlman.net\\\",\\n      \\\"phone_number\\\":\\\"787.128.7490\\\",\\n      \\\"address\\\":\\\"97509 Littel Throughway\\\",\\n      \\\"address2\\\":\\\"\\\",\\n      \\\"state\\\":\\\"AA\\\",\\n      \\\"city\\\":\\\"North Marielastad\\\",\\n      \\\"postal_code\\\":\\\"46183\\\",\\n      \\\"country\\\":\\\"Moldova\\\",\\n      \\\"password\\\":\\\"abc123\\\",\\n      \\\"subscription_plan_code\\\":\\\"basic\\\"\\n   }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Example account creation payload\"\n    }\n  ]\n}\n[/block]\nAn example in PHP is available [here](https://shippingeasy.readme.io/v1.1/docs/accessing-other-apis-1).","excerpt":"","slug":"partners-api-accounts","type":"endpoint","title":"/accounts"}

Definition

{{ api_url }}{{ page_api_url }}

Result Format


Documentation

A partner may create ShippingEasy accounts on behalf of their customers. The first time a customer logs into an account created via the partner API they will be prompted to provide billing information. Their subscription plan will be preset to whatever plan was sent in the account creation payload. Note that the API key and API secret values that are used for partner requests are not the same as the API key and API secret used for accessing a ShippingEasy customer account - see [API Credentials](https://shippingeasy.readme.io/docs/api-credentials) for more. [block:api-header] { "type": "basic", "title": "Example payload" } [/block] [block:code] { "codes": [ { "code": "{\n \"account\":{\n \"first_name\":\"Bonita\",\n \"last_name\":\"Yundt\",\n \"company_name\":\"Emard, Becker and Morissette\",\n \"email\":\"heberr@kuhlman.net\",\n \"phone_number\":\"787.128.7490\",\n \"address\":\"97509 Littel Throughway\",\n \"address2\":\"\",\n \"state\":\"AA\",\n \"city\":\"North Marielastad\",\n \"postal_code\":\"46183\",\n \"country\":\"Moldova\",\n \"password\":\"abc123\",\n \"subscription_plan_code\":\"basic\"\n }\n}", "language": "json", "name": "Example account creation payload" } ] } [/block] An example in PHP is available [here](https://shippingeasy.readme.io/v1.1/docs/accessing-other-apis-1).