username:password
Authorization: Basic *****************
{
"id": "evnt_{{$timestamp}}",
"name": "Soccer Event"
}
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 '{
"id": "evnt_{{$timestamp}}",
"name": "Soccer Event"
}'
{
"id": "evnt_1681165396",
"name": "Soccer Event",
"create_time": "2023-04-10T22:23:15Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/catalogs/products/evnt_1681165396",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/catalogs/products/evnt_1681165396",
"rel": "edit",
"method": "PATCH"
}
]
}