Plentymarkets interface documentation

Amazon

Contracts

AmazonClient

The amazon client

Namespace

Plenty\Modules\Amazon\Contracts

Methods
public sendRequest($request, $serviceVersion):Plenty\Modules\Amazon\Contracts\AmazonClientResponse
Return type: AmazonClientResponse
Parameters

Name

Type

Description

$request

AmazonClientRequest

$serviceVersion

string

AmazonClientFactory

Namespace

Plenty\Modules\Amazon\Contracts

Methods
public getClient($accountId, $endpointPath):Plenty\Modules\Amazon\Contracts\AmazonClient
Return type: AmazonClient
Parameters

Name

Type

Description

$accountId

int

$endpointPath

string

AmazonClientRequest

Namespace

Plenty\Modules\Amazon\Contracts

Methods
public getRequestData():array
public requiresSellerId():bool
public getSellerIdFieldName():string
public getAction():string

AmazonClientRequestPayload

Namespace

Plenty\Modules\Amazon\Contracts

Methods
public getPayload():void

AmazonClientResponse

Namespace

Plenty\Modules\Amazon\Contracts

Methods
public getResponseContent():void
public getResponseMetaData():array

AmazonFulfillmentCenterRepositoryContract

AmazonFulfillmentCenterRepository

Namespace

Plenty\Modules\Amazon\Contracts

Methods
public getDeliveryAddresses():array

Lists amazon fulfilment centers delivery addresses.

public getDeliveryAddressByFulfillmentCenterId($amazonFulfillmentCenterId):Plenty\Modules\Account\Address\Models\Address
Return type: Address

Get the delivery address by fulfillment center ID.

Parameters

Name

Type

Description

$amazonFulfillmentCenterId

string

public getDeliveryAddressByGLN($GLN):Plenty\Modules\Account\Address\Models\Address
Return type: Address

Get the delivery address by GLN.

Parameters

Name

Type

Description

$GLN

string

public getInvoiceAddressByGLN($GLN):Plenty\Modules\Account\Address\Models\Address
Return type: Address

Get the invoice address by GLN.

Parameters

Name

Type

Description

$GLN

string

public getContactId():int

Exceptions

AmazonClientException

Created by ptopczewski, 01.02.18 11:41 Class AmazonClientException

Namespace

Plenty\Modules\Amazon\Exceptions

AmazonClientRequestException

Created by ptopczewski, 07.02.18 10:34 Class AmazonClientRequestException

Namespace

Plenty\Modules\Amazon\Exceptions

Methods
public getType():string
public getRequestId():string
public getErrorCode():string