I try to execute fiancial report with app-connect api using :
--- "method": "get",
--- "url":
"https://api.appstoreconnect.apple.com/v1/financeReports?filter[regionCode]=US&filter[reportDate]=2022-03&filter[reportType]=FINANCIAL&filter[vendorNumber]=XXXXX"
I tried several variations :
in reportType I tried FINANCIAL and FINANCE_DETAIL
in reportDate I also tried only year 2022 and also 03-2022
whenever I try invalid value - I get error on invalid value, for a specific parameter
like this :
--- status: '400',
--- code: 'PARAMETER_ERROR.INVALID',
--- title: 'A parameter has an invalid value',
--- detail: 'Invalid vendor number specified. Try again.',
--- source: { parameter: 'filter[vendorNumber]' }
So I know my parameters are valid
But when I execute this I get :
"app connect - exec API - failed on url execution"
--- "id": XXXXXX,
--- "status: "404",
--- "code: "NOT_FOUND",
--- "title":"The request expected results but none were found",
--- "detail": "There were no sales for the date specified."
when I look at same date on reports in apple site I do get a report with sales data for same region and dates :
"...
02/27/2022 03/26/2022 gXXXXXe 3 8.49 25.47 USD S 15XXXX8701 geXXXXhs IAY US 9.99 USD
02/27/2022 03/26/2022 gXXXXh 14 8.49 118.86 USD S 15XXXX26
"
is there any idea why the download from site is working , while the api does not ?
what am I doing wrong ???
Post
Replies
Boosts
Views
Activity
Hi All
I am trying to verify for my site.
receipt was done by a subscriber , and we need to get the total and currency and origin so we may calculate tax and revenue for application the we maintain.
trying to verify receipt (using this api : https://buy.itunes.apple.com/verifyReceipt).
I do get many details about the subscription , but the specific fiscal data is missing : no total , no tax , no currency , no origin
can someone say if there is a way to get this values from receipt ?
and what is it ?
I am using this values :
{
"method": "post",
"url": "https://buy.itunes.apple.com/verifyReceipt",
"headers": {
"Accept": "application/json,application/a-gzip",
"Authorization": "Bearer + < token > ",
"encoding": "utf8"
},
"data": {
"method": "POST",
"url": "https://buy.itunes.apple.com/verifyReceipt",
"params": {
"password": "3301aXxxxx....xxxXXXX06980",
"exclude-old-transactions": false,
"receipt-data": "MIIVtgYJKoZIhvcNAQcCoIIVpzCCFaMCAQExCzAJBgUrDgMCGgXxxxxxx...xxxxxxxXAIBBQIBAQQUQkguVRLVu7Wi "
}
}
}
token is a Java Web Signature (JWS) token generated according to apple documentation