#surgical - Invoice Items

1 messages · Page 1 of 1 (latest)

clear hinge
#

Hi surgical. Looking into this

#

You should be able to add both positive and negative invoice item amounts to your invoice. What issue are you seeing exactly?

wet bramble
#

one secno

#

we get an error : we get an error, stripeinvalidrequesterror, Invalid non-negative integer

raw: {
message: 'Invalid non-negative integer',
param: 'unit_amount',
type: 'invalid_request_error',
headers: {
server: 'nginx',
date: 'Tue, 01 Feb 2022 14:44:32 GMT',
'content-type': 'application/json',
'content-length': '132',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET, POST, HEAD, OPTIONS, DELETE',
'access-control-allow-origin': '*',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'idempotency-key': 'da9fee62-1c07-4703-a87f-38e515e8bb70',
'original-request': 'req_SSYyOruP1hgkw5',
'request-id': 'req_SSYyOruP1hgkw5',
'stripe-version': '2018-07-27',
'strict-transport-security': 'max-age=31556926; includeSubDomains; preload'
},
statusCode: 400,
requestId: 'req_SSYyOruP1hgkw5'
},
rawType: 'invalid_request_error',
code: undefined,
doc_url: undefined,
param: 'unit_amount',
detail: undefined,
headers: {
server: 'nginx',```
clear hinge
#

Oh. You aren't creating an invoice item there

#

That request is creating a price

#

You can't have a negative price

wet bramble
#

ohhh okay. can i create an invoice item without passing a price, and just passing in an amount?

clear hinge
#

Correct

wet bramble
#

OHHhhhh

#

thank you!!

#

will try this