username:password
Authorization: Basic *****************
{
"name": "T-Shirt",
"type": "PHYSICAL",
"id": "{{$timestamp}}",
"description": "Cotton XL",
"category": "CLOTHING",
"image_url": "https://example.com/gallary/images/{{$timestamp}}.jpg",
"home_url": "https://example.com/catalog/{{$timestamp}}.jpg"
}
curl --location --request POST 'https://api-m.sandbox.paypal.com/v1/catalogs/products' \
--header 'PayPal-Request-Id: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"name": "T-Shirt",
"type": "PHYSICAL",
"id": "{{$timestamp}}",
"description": "Cotton XL",
"category": "CLOTHING",
"image_url": "https://example.com/gallary/images/{{$timestamp}}.jpg",
"home_url": "https://example.com/catalog/{{$timestamp}}.jpg"
}'
{
"id": "PROD-01Y15581KH952442A",
"name": "T-Shirt",
"create_time": "2022-02-01T00:32:03Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/catalogs/products/PROD-01Y15581KH952442A",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/catalogs/products/PROD-01Y15581KH952442A",
"rel": "edit",
"method": "PATCH"
}
]
}