Discussions

Ask a Question
Back to All

Failed to add product to Cart.Array

Hi musement team,
i'm experiencing a weird error when i try to add some activities to an existing cart,
i tested my app app very thoroughly and the issue isn't from my end .. because most of the activities are working fine and i could add them easily. Except for a few ones where i get this error when i try to add them .

Failed to add product to Cart.Array\n(\n [
0
] => Array\n (\n [type
] => musement-realtime\n [product_identifier
] => HJsQLS/g2cDArRtbMfJlNBY4yUHySAeYCXDlGgiIP2WBwu+QhaZmY+noyB1w5xR/JvFfBpm5ekKrE+Nq+ExVhZM5xN2YyhB+P4vnSS/iZ58aAzXs4ZP+SdyM6uOBijh2gf/Pj9Il6cpmSOPbOZFiVOSKJzqxspA6ErFx2F4Yxo3uJ0t5nBDtE2HMdx+aDuPCi45kfPFGrIqKLS3ZsEIUc4L9tQNPOabU5urC77nvNRUtb5MFJvEDWh9izK2ZH1GEfuKyGadE8Tj+j4gJbb96hY2ct5Db4RtyTlD7681qEoKbqxlx5Tn5Ny9l+EOHhZFMTjCIG6nQPNNiZhREROhVudKz1kcPTmkGKZMV/o/YZov/A3fJrn0A1xJlqVHwhTksXLGLxxAyEDz3O1lfK7DfaSGT/+HFNFh4dBXSr6sxap/iH69oQpcastT8/4shJC8hoMfvbYcMFJm4AbGtCOc1n44MoaJgJesRmabwNKQEsGraJFvw/V1davTEsTnWqzH+pVgllebM04pXPEctwhNCxrNCmcfwzntRuEdvPcYCzNoqeKyIM593QhnkERU/UOsaOZDVJyIPi6Dq5imtmPKcMc6fA2wymnMmPueDaaQsKM35GImhaghB0LVeW8+652XKcHwHcV2tMbBL3whb5t3nnnR8s04KtBY0egO8EODZwjRUYuh/TkKahDmKzrhq41oEQrDgVh0WIEThpmCN83DDtAS767JeRNs2IYCHN3Ue0BkvWAGtL+gKcMPeLJ4DtrjkRNqb82HtXRzt57J210nNbO4f6yh1cwqHwRt+Ig==\n [quantity
] => 1\n [language
] => English\n [pickup
] => \n )\n\n)\n, Cart UUID: 1c186d33-be72-4777-b1c3-9650f62a6728"

here is the data i get from your end obviously there's somethings wrong with the id
{
"holder_code_normalized": "REGULAR",
"service_fee": {
"currency": "USD",
"value": 0,
"formatted_value": "$ 0.00",
"formatted_iso_value": "$0.00"
},
"holder_code": "standard-price",
"name": "Standard price (7+)",
"type": "musement-realtime",
"default": false,
"product_id": "HJsQLS/g2cDArRtbMfJlNBY4yUHySAeYCXDlGgiIP2WBwu+QhaZmY+noyB1w5xR/JvFfBpm5ekKrE+Nq+ExVhZM5xN2YyhB+P4vnSS/iZ58aAzXs4ZP+SdyM6uOBijh2gf/Pj9Il6cpmSOPbOZFiVOSKJzqxspA6ErFx2F4Yxo3uJ0t5nBDtE2HMdx+aDuPCi45kfPFGrIqKLS3ZsEIUc4L9tQNPOabU5urC77nvNRUtb5MFJvEDWh9izK2ZH1GEfuKyGadE8Tj+j4gJbb96hY2ct5Db4RtyTlD7681qEoKbqxlx5Tn5Ny9l+EOHhZFMTjCIG6nQPNNiZhREROhVudKz1kcPTmkGKZMV/o/YZov/A3fJrn0A1xJlqVHwhTksXLGLxxAyEDz3O1lfK7DfaSGT/+HFNFh4dBXSr6sxap/iH69oQpcastT8/4shJC8hoMfvbYcMFJm4AbGtCOc1n44MoaJgJesRmabwNKQEsGraJFvw/V1davTEsTnWqzH+pVgllebM04pXPEctwhNCxrNCmcfwzntRuEdvPcYCzNoqeKyIM593QhnkERU/UOsaOZDVJyIPi6Dq5imtmPKcMc6fA2wymnMmPueDaaQsKM35GImhaghB0LVeW8+652XKcHwHcV2tMbBL3whb5t3nnnR8s04KtBY0egO8EODZwjRUYuh/TkKahDmKzrhq41oEQrDgVh0WIEThpmCN83DDtAS767JeRNs2IYCHN3Ue0BkvWAGtL+gKcMPeLJ4DtrjkRNqb82HtXRzt57J210nNbO4f6yh1cwqHwRt+Ig==",
"min_buy": 1,
"max_buy": 6,
"original_retail_price": {
"currency": "USD",
"value": 35,
"formatted_value": "$ 35.00",
"formatted_iso_value": "$35.00"
},
"original_retail_price_without_service_fee": {
"currency": "USD",
"value": 35,
"formatted_value": "$ 35.00",
"formatted_iso_value": "$35.00"
},
"discount_amount": {
"currency": "USD",
"value": 0,
"formatted_value": "$ 0.00",
"formatted_iso_value": "$0.00"
},
"retail_price": {
"currency": "USD",
"value": 35,
"formatted_value": "$ 35.00",
"formatted_iso_value": "$35.00"
},
"retail_price_without_service_fee": {
"currency": "USD",
"value": 35,
"formatted_value": "$ 35.00",
"formatted_iso_value": "$35.00"
},
"activity_uuid": "038fba53-9672-41f1-b80c-a63e995e0833"
}

and this is the item i submit to https://api.musement.com/api/v3/carts/${cartId}

[
{
"type": "musement-realtime",
"product_identifier": "HJsQLS/g2cDArRtbMfJlNBY4yUHySAeYCXDlGgiIP2WBwu+QhaZmY+noyB1w5xR/JvFfBpm5ekKrE+Nq+ExVhZM5xN2YyhB+P4vnSS/iZ58aAzXs4ZP+SdyM6uOBijh2gf/Pj9Il6cpmSOPbOZFiVOSKJzqxspA6ErFx2F4Yxo3uJ0t5nBDtE2HMdx+aDuPCi45kfPFGrIqKLS3ZsEIUc4L9tQNPOabU5urC77nvNRUtb5MFJvEDWh9izK2ZH1GEfuKyGadE8Tj+j4gJbb96hY2ct5Db4RtyTlD7681qEoKbqxlx5Tn5Ny9l+EOHhZFMTjCIG6nQPNNiZhREROhVudKz1kcPTmkGKZMV/o/YZov/A3fJrn0A1xJlqVHwhTksXLGLxxAyEDz3O1lfK7DfaSGT/+HFNFh4dBXSr6sxap/iH69oQpcastT8/4shJC8hoMfvbYcMFJm4AbGtCOc1n44MoaJgJesRmabwNKQEsGraJFvw/V1davTEsTnWqzH+pVgllebM04pXPEctwhNCxrNCmcfwzntRuEdvPcYCzNoqeKyIM593QhnkERU/UOsaOZDVJyIPi6Dq5imtmPKcMc6fA2wymnMmPueDaaQsKM35GImhaghB0LVeW8+652XKcHwHcV2tMbBL3whb5t3nnnR8s04KtBY0egO8EODZwjRUYuh/TkKahDmKzrhq41oEQrDgVh0WIEThpmCN83DDtAS767JeRNs2IYCHN3Ue0BkvWAGtL+gKcMPeLJ4DtrjkRNqb82HtXRzt57J210nNbO4f6yh1cwqHwRt+Ig==",
"quantity": 1,
"language": "English",
"pickup": ""
}
]

This is urgent .i hope you answer this as fast as possible .