Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The deliverySameAsInvoice parameter has to be used in combination of a invoice address. He won't have any use alone, and a delivery address would overwrite the information it puts.

Modifier

...

Set informations

Attach informations to the cart.

...

https://wsmedia.tlsecure.com/api/json/00000/cart/informationModifier

Request

Parameters

Location

Type

Required

Default

Accepted

token

Header

String(26)

v

Content-Type

Header

String

v

application/x-www-form-urlencoded

email

Form

String

deliveryType

Form

Integer

Delivery types

paymentMethod

Form

Integer

Payment methods

shop

Form

Integer

deliveryAddress

Form

Long

invoiceAddress

Form

Long

collectionPoint

Form

Long

deliverySameAsInvoice

Form

Boolean

company

Form

Integer

message

Form

String

Email is not needed for a cart. However, if you intent to allow unregistred users to make orders, that field is quite usefull, as it would allow to recover those orders in case of a further account creation.Modifier

Response

Success

Code Block
{
	"response": {
		"success": true
		"code": 0
		"message": "cart info updated"
		"object": {
			"cart": {
				"customer": 62
				"email": "thor@avengers.com"
				"message": "call for Heimdall"
				"creationDate": "2016-02-29 15:43:21"
				"deliveryType": 3
				"paymentMethod": 1
			}
		}
	}
}

...

Code

Success

Message

0

v

cart info updated

1

domaincode malformed

2

connexion error

3

token empty

4

no token with that key

5

invalid token

9

{param} not {type} {(or undefined)}

10

nothing to be updated

11

delivery address not exist

12

facturation address not exist

13

delivery type not exist/defined

14

delivery type not available - cart with not only ebooks

15

delivery type not available - cart with only ebooks

16

payment method not exist/defined

17

no postal charges available

18

shop not exist

19

company not exist

99

uncatched exception

...

...

Delivery types available

Click here for more information.Modifier

...

Payment methods available

Click here for more information.Modifier

...

Shipping costs simulation

Click here for more information