Customers

Get return requests

GET http://localhost:59318/odata/v1/Customers(1)/ReturnRequests

Customer(1) refers to the customer with the ID 1.

Get email address

GET http://localhost:59318/odata/v1/Customers(1)?$select=Email

Assign billing and shipping address

PATCH http://localhost:59318/odata/v1/Customers(1)
{ "BillingAddressId": 86384, "ShippingAddressId": 86384 }

Assign address with ID 10

POST http://localhost:59318/odata/v1/Customers(1)/Addresses(10)

Use the DELETE method to remove an assignment. Use 0 as address identifier if you want to remove all address assignments for a customer.

It doesn't matter if one of the assignments already exists. The Web API automatically ensures that a customer has no duplicate address assignments.

Last updated

Was this helpful?