问题描述
我正在尝试通过向此端点发送以下数据来创建收据:https://api.loyverse.com/v1.0/receipts。 但是,我收到错误,说我发送的 UUID 不是 UUID:
错误信息:
raze{
//[table;where;by;cols;rows]
?[tab;enlist (in;`sym;enlist x);0b;();y]
}[;-2]'[distinct tab[`sym]]
}
终点:
{
"errors":[
{
"code":"INVALID_VALUE_TYPE","details":"The value must be an UUID","field":"object.payments (line: 1,column: 369)"
}
]
我的请求数据:
https://api.loyverse.com/v1.0/receipts
]
我确信 [
'store_id' => '0de6be20-4008-4511-bfe5-d9b8854620e5','order' => 250972528,'customer_id' => '62b73367-bcd8-49e7-ke8e-696947052c72','source' => 'website','receipt_date' => '2021-03-12T16:06:12.000Z','note' => NULL,'total_discounts' => [],'line_items' => [
0 => [
'variant_id' => '62955a68-38fa-45ad-bd3e-68c9985fbe96','quantity' => 1,'price' => 13,'cost' => 13,'line_note' => 'test order','details' => '',],'payments' => [
'payment_type_id' => 'fc52f1b2-31cf-4f51-ba40-c165c1273282','paid_at' => '2021-03-12T16:06:12.000Z',
是正确的 payment_type_id
格式,但我完全不知道它有什么问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)