Test Payloads
This is sample payloads for E-commerce platform
- User
{
"id": "12345",
"name": "John Doe",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"phone": "555-555-5555"
}
- Order
{
"id": "123456",
"date": "2023-02-16T12:34:56Z",
"total": 99.99,
"status": "Processing",
"customer": {
"id": "12345",
"name": "John Doe",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"phone": "555-555-5555"
},
"items": [
{
"id": "98765",
"name": "Product One",
"quantity": 1,
"price": 49.99
},
{
"id": "43210",
"name": "Product Two",
"quantity": 2,
"price": 25.00
}
],
"shipping": {
"method": "Standard",
"cost": 9.99,
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345"
}
}
}
- Product
{
"id": "12345",
"name": "Product One",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"price": 49.99,
"image": "https://example.com/images/product1.jpg",
"category": "Electronics",
"brand": "Brand Name",
"stock": 100,
"rating": 4.5
}
- Product List
{
"products": [
{
"id": "1",
"name": "Product One",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"price": 19.99,
"image_url": "https://example.com/product1.jpg",
"category": "Category One",
"in_stock": true,
"created_at": "2023-02-16T12:34:56Z",
"updated_at": "2023-02-16T12:34:56Z"
},
{
"id": "2",
"name": "Product Two",
"description": "Ut enim ad minim veniam, .",
"price": 29.99,
"image_url": "https://example.com/product2.jpg",
"category": "Category Two",
"in_stock": false,
"created_at": "2023-02-16T12:34:56Z",
"updated_at": "2023-02-16T12:34:56Z"
}
]
}
- Cart
{
"id": "12345",
"customer_id": "67890",
"items": [
{
"product_id": "111",
"name": "Product One",
"quantity": 2,
"price": 19.99
},
{
"product_id": "222",
"name": "Product Two",
"quantity": 1,
"price": 29.99
}
],
"total": 59.97
}
- Saved Card
{
{
"cardholder_name": "John Smith",
"card_number": "4242424242424242",
"expiration_month": "01",
"expiration_year": "2024",
"cvv": "123",
"billing_address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"postal_code": "12345",
"country": "USA"
}
}
- Transactions
{
"id": "12345",
"customer_id": "67890",
"items": [
{
"product_id": "111",
"name": "Product One",
"quantity": 2,
"price": 19.99
},
{
"product_id": "222",
"name": "Product Two",
"quantity": 1,
"price": 29.99
}
],
"total": 59.97,
"transaction_date": "2023-02-16T12:34:56Z",
"status": "completed",
"payment_method": "credit_card",
"shipping_method": "standard",
"shipping_address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"postal_code": "12345",
"country": "USA"
}
}