Comments (2)
As you can see in Product.php, the title is an array of TranslatableText
.
In your specific case this should work:
// ...
$product = new Product;
$title = new TranslatableText;
$title->text = 'Test';
$title->languageCode = 'de';
$product->title = [$title]; // added square brackets
$product->sku = 'test';
$product->soldAmount = 99.99;
print_r($product);
$test = $client->createProduct($product);
print_r($test);
// ...
from billbee-php-sdk.
Thanks again for your help. I am working on the problem again and I keep getting the error 500 Internal Server Error
.
Can you help me please?
Uncaught GuzzleHttp\Exception\ServerException: Server error: 'POST https://app.billbee.io/api/v1/products' resulted in a '500 Internal Server Error' response:
from billbee-php-sdk.
Related Issues (20)
- Magic request methods require a URI and optional options array HOT 1
- missing pagination in CustomersEndpoint getCustomers()
- No way to patch line2 and 3 of an address HOT 1
- Issue in express shipping with /api/v1/shipment/shipwithlabel HOT 1
- Product cannot be created when ShippingProductId is not set HOT 1
- ShipmentType in Shipment model is missing HOT 1
- Patching DeliverySourceCountryCode of orders does not work HOT 1
- Dependencies outdated for modern frameworks HOT 2
- createOrder not working HOT 9
- Models for Webhook Answers HOT 1
- The PSR Http Message implementation may return NULL for getHeader() HOT 2
- Prerelase 2.1: Declaration of Psr\Log\NullLogger: must be compatible with ... HOT 6
- Extend the Shipments API implementation
- Error in Multiple Stock Update HOT 1
- Error in SoldProduct Serialization HOT 1
- Billbee API Invoice Date Issue
- How do I create a product? How do I search for a product?
- Error with updateStock or updateStockMultiple -> "ErrorMessage":"Parameter SKU is empty" but given HOT 3
- Latest jms/serializer 3.3.0 breaks post requests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from billbee-php-sdk.