Hello,
I can’t access the sandbox’s services section under items like I can in the production environment.
Hello,
I can’t access the sandbox’s services section under items like I can in the production environment.
Are you logged in as the owner or administrator of the Square account?
I am logged in as the owner.
Okay, I see what you mean now. I was confused. It looks like it’s not supported in sandbox. I’m reaching out to the team.
Please keep me updated.
I need to test payment for an upcoming production release.
Not being able to set resources, services information or add taxes to an item is a major problem for our development.
You can still create services with the Catalog API. For example here is one from my account:
{
"idempotency_key":"{{$guid}}",
"object": {
"type": "ITEM",
"id": "#newapt",
"is_deleted": false,
"present_at_all_locations": true,
"item_data": {
"name": "Hair Cut",
"description": "Simple cut",
"visibility": "PRIVATE",
"category_id": "QVM6OF3LC5EKCXZTXDS7PIOQ",
"tax_ids": [
"QZR25LKZ23SLVOPWFLJ4J3MS",
"ZPTKVRGA2UDO2OZWL6ULID3H"
],
"modifier_list_info": [
{
"modifier_list_id": "M2JDAVYQCJEK2KAUTVJAYRTK",
"visibility": "PUBLIC",
"min_selected_modifiers": -1,
"max_selected_modifiers": -1,
"enabled": true
}
],
"variations": [
{
"type": "ITEM_VARIATION",
"id": "#regular",
"updated_at": "2022-09-14T21:32:51.988Z",
"created_at": "2021-03-29T23:52:30.269Z",
"version": 1663191171988,
"is_deleted": false,
"present_at_all_locations": true,
"item_variation_data": {
"item_id": "#newapt",
"name": "Regular",
"ordinal": 1,
"pricing_type": "FIXED_PRICING",
"price_money": {
"amount": 1000,
"currency": "USD"
},
"service_duration": 1800000,
"available_for_booking": true,
"no_show_fee": {
"amount": 100,
"currency": "USD"
},
"transition_time": 0,
"sellable": true,
"stockable": true,
"team_member_ids": [
"A6mpnApGj4jETONcwCKz",
"TMdDk8h6s-Zo9U8s",
"UMdE-fDqUdg4ZS10qbMn"
]
}
}
],
"product_type": "APPOINTMENTS_SERVICE",
"skip_modifier_screen": false,
"ecom_visibility": "UNINDEXED",
"description_html": "<p>Simple cut</p>",
"description_plaintext": "Simple cut"
}
}
}
Am I able to add and assign resources?
Yes, you can add to the sandbox via the API.
I’m looking at the Node SDK. I don’t see an option for adding resources.
Just to verify, is this functionality not available in the Node SDK?
It is with the Catalog API which is in the Node SDK. An appointment service is a catalog object with a product type of APPOINTMENTS_SERVICE
. You’ll use UpsertCatalogObject to make the appointment service.